[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Eeek?! smbmount is deprecated?!



El jue, 12-07-2007 a las 16:37 +0300, tejas escribió:
[...]
> echo "unmounting shares..."
> sudo /home/tejas/Desktop/ayir # unmount script
> 
[...]
> and ayir: (unmount script)
> 
> #! /bin/bash	
> SHA="masaustu firefox thunderbird Downloads"
> if [ `whoami` != "root" ]; then echo "you must be root"; exit; fi
> 
> 	for i in $SHA; do
> 		sudo umount -l /home/tejas/Desktop/$i

Just a silly correction: the script only gets to this point if it's
running as root, therefore the 'sudo' here is not necessary.

> 		sleep 5
> 	done
> 
[...]
-- 
Gabriel Parrondo
GNU/Linux User #404138
GnuPG Public Key ID: BED7BF43
JID: gabrielp@xmpp.us

"The only difference between theory and practice is that, in theory, there's no difference between theory and practice."



Reply to: