I created scripts that mount or unmount SMB shares (one for each PC or Zaurus). In this case, I'm mounting my SL5600's share ("zephyrus" is its machine name in my /etc/hosts file). I check the /mnt/smb directory, if it's empty, then I do a mount, if not, then I un-mount it.
The script uses the OPIE-SH package to display a dialog box telling you what it did.
Any messages generated are sent to a log file that can be checked later.
I also use the "sudo" package to run the mount.
I then created an icon and added it to my SL6000 desktop so I can tap it to run it.
#--------------------------------
# Mount the Zephyrus over wiFi
# 2004-12-18 - r.l. stoner
#--------------------------------
(
checkit=`ls /mnt/smb/ | wc -l`
#echo $checkit
if [ $checkit -ne 0 ]
then
echo "UnMounting Zephyrus home ..."
sudo umount /mnt/smb
/home/QtPalmtop/bin/opie-sh -m -w -t "Zephyrus Toggled" -M "Zephyrus/home un-mounted." -g
exit 0
else
echo "Mounting... Zephyrus"
sudo smbmount //zephyrus/home /mnt/smb -o username=rick,password=xxx
/home/QtPalmtop/bin/opie-sh -m -I -t "Zephyrus Toggled" -M "Zephyrus/home Mounted." -g
exit 0
fi
) > /tmp/domntzeph.log
#--- end of script ---#