#!/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

#DEBHELPER#

### modify sudoers ###

SF="/etc/sudoers"
MD="/lib/modules/2.6.21-omap1/extra"


if [ -e $SF ]; then
	if [ -d $MD ]; then
		for i in $MD/*; do
#			echo -e "inserting :\n/sbin/insmod $i\n";
			echo "user ALL = NOPASSWD: /sbin/insmod $i" >> $SF
		done
	fi
	echo "user ALL = NOPASSWD: /sbin/mount.cifs" >> $SF
	### FIXME ###
	echo "user ALL = NOPASSWD: /bin/mount" >> $SF 
	echo "user ALL = NOPASSWD: /bin/umount" >> $SF 
fi
	

#exit 0
