#!/bin/sh

# The clock might be wrong and we know that we need to update the icon
# cache so we just force it.

gtk-update-icon-cache -f /usr/share/icons/hicolor

# Now we are ready to let the user move the entry around, but only if
# this is a new install

#maemo-select-menu-location wizard-mounter.desktop <<-- deprecated for maemo5

#DEBHELPER#

### modify sudoers ###

SF="/etc/sudoers"

if [ -e $SF ]; then
	echo "user ALL = NOPASSWD: /sbin/modprobe" >> $SF
	echo "user ALL = NOPASSWD: /bin/mount" >> $SF
	echo "user ALL = NOPASSWD: /bin/umount" >> $SF
	echo "user ALL = NOPASSWD: /etc/init.d/portmap" >> $SF
fi

# Create mounting folder

remdir="/media/Remote_Filesystems"

if [ ! -d $remdir ]; then
	/bin/mkdir $remdir
fi

chown user:users /media/Remote_Filesystems
chmod 777 /media/Remote_Filesystems

#exit 0
