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: [EMAIL PROTECTED]

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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to