From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Hale" Date: Tue, 16 Sep 2003 13:59:31 +0000 Subject: Weird environment for usb-storage script? Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hello, I am having a problem with my /etc/hotplug/usb/usb-storage script. As you can see below it attempts to start the ssh server and eject the cdrom when I insert my usb drive and then stop the ssh server and any connections and unject the cdrom when I remove the drive. The cd pops in and out when I remove insert and remove the drive, but nothing happens with ssh. I have run usb-storage from the command line and it has the desired behavior, but when hotplug runs the script it doesn't start/stop ssh. Any suggestions? #!/bin/sh /etc/init.d/ssh start eject echo "#!/bin/sh" > $REMOVER echo "/etc/init.d/ssh stop" >> $REMOVER echo "killall -9 sshd" >> $REMOVER echo "eject -t" >> $REMOVER chmod 777 $REMOVER ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel