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

#oldversion="$2"
#if [ -z "$oldversion" ]; then

 
#maemo-select-menu-location wizard-mounter.desktop
#fi

#DEBHELPER#

### modify sudoers ###

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


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
	### FIXME ###
	echo "user ALL = NOPASSWD: /sbin/insmod /lib/modules/current/cifs.ko" >> $SF
	echo "user ALL = NOPASSWD: /etc/init.d/portmap" >> $SF
	echo "user ALL = NOPASSWD: /bin/mount" >> $SF 
	echo "user ALL = NOPASSWD: /bin/umount" >> $SF 
fi
	

#exit 0
