xfce4-trigger-launcher examples/ideas

Jan Eidtmann cmak at firemail.de
Mon Jul 21 04:02:54 CEST 2003


made a small mistake there lol, sorry for this spam......;-(

i have marked it in the attached original:

On Monday 21 July 2003 03:31, Jan Eidtmann wrote:
> cd mount/-unmount button:
>
> #!/bin/sh
>
> if [ "$1" = "1" ]; then
>     echo 1                    <- should be commented out
>     mount /cdrom &> /dev/null
>
> elif [ "$1" = "0" ]; then
>     echo 0                    <- should be commented out
>     umount /cdrom &> /dev/null
>
> else
>     STATUS=`cat /proc/mounts | grep cdrom`
>     if [ "x$STATUS" = "x" ]; then
> 	echo 0
>     else
> 	echo 1
>     fi
> fi
>
> any suggestions on how to make this better? :-)
> it works for me...

-- 
JanE. - kisa is the tiger  
        
# Linux 2.4.22-pre7-pom






More information about the Xfce mailing list