xfce4-trigger-launcher examples/ideas

Jan Eidtmann cmak at firemail.de
Mon Jul 21 03:31:17 CEST 2003


cd mount/-unmount button:

#!/bin/sh

if [ "$1" = "1" ]; then
    echo 1
    mount /cdrom &> /dev/null

elif [ "$1" = "0" ]; then
    echo 0
    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 performed by múm  
        
# Linux 2.4.22-pre7-pom




More information about the Xfce mailing list