linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Weird environment for usb-storage script?
@ 2003-09-16 13:59 Michael Hale
  2003-09-17 15:55 ` Joerg Sommer
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Hale @ 2003-09-16 13:59 UTC (permalink / raw)
  To: linux-hotplug

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-17 15:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-16 13:59 Weird environment for usb-storage script? Michael Hale
2003-09-17 15:55 ` Joerg Sommer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).