I'm working on a gui tool for mounting usb sticks. I want it to launch from hotplugd, but so far I am unsuccessful.

#/etc/hotplug/attach

#!/bin/sh

DEVCLASS=$1

DEVNAME=$2


case $DEVCLASS in

    2)

        /usr/local/bin/xmount.py /dev/"$DEVNAME"a

        ;;

esac


The script is executable. However, the log shows "child exit status: 1" and the program doesn't startup. If I run "xmount.py /dev/sd1a" from an xTerm it works as expected. Is there some special magic I need to add to the attach script?


Thanks,


Edgar

Reply via email to