17 Sep 2003 23:11
RE: [SOLVED] RE: Weird environment for usb-storage script?
Michael Hale <michaelh <at> cipheroptics.com>
2003-09-17 21:11:10 GMT
2003-09-17 21:11:10 GMT
I added set -e and commented out exec and set -x. My cd still ejects, but ssh fails to start. However when I used exec to send stdout to /dev/null it starts ssh in addition to ejecting the cd. Here is the script I currently have: #!/bin/sh exec >/dev/null 2>&1 invoke-rc.d ssh start eject echo '#!/bin/sh killall -9 sshd eject -t' > $REMOVER chmod 700 $REMOVER begin "Michael Hale" <michaelh <at> cipheroptics.com> wrote: >>From: linux-hotplug-devel-admin <at> lists.sourceforge.net >>[mailto:linux-hotplug-devel-admin <at> lists.sourceforge.net] On >>Behalf Of Michael Hale >>Sent: Wednesday, September 17, 2003 1:37 PM >>To: linux-hotplug-devel <at> lists.sourceforge.net >>Subject: [SOLVED] RE: Weird environment for usb-storage script? >> >>I changed my usb-storage script to look like this: >>#!/bin/sh >> add here: set -e to let the script die, if something returns with an error.(Continue reading)
RSS Feed