linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [SOLVED] RE: Weird environment for usb-storage script?
@ 2003-09-17 17:36 Michael Hale
  2003-09-17 18:19 ` Michael Hale
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Hale @ 2003-09-17 17:36 UTC (permalink / raw)
  To: linux-hotplug

Thanks Joerg,

I changed my usb-storage script to look like this:
#!/bin/sh

exec >/tmp/foo.$$ 2>&1
set -x
invoke-rc.d ssh start
eject

echo '#!/bin/sh
killall -9 sshd
eject -t' > $REMOVER

chmod 777 $REMOVER

...and it starts and stops the ssh server.  Now I just need to read some
man pages and figure out what exec and set -x are actually doing :)

Thanks again, Michael

>-----Original Message-----
>From: linux-hotplug-devel-admin@lists.sourceforge.net 
>[mailto:linux-hotplug-devel-admin@lists.sourceforge.net] On 
>Behalf Of Joerg Sommer
>Sent: Wednesday, September 17, 2003 11:55 AM
>To: linux-hotplug-devel@lists.sourceforge.net
>Subject: Re: Weird environment for usb-storage script?
>
>
>



-------------------------------------------------------
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] 4+ messages in thread

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-17 17:36 [SOLVED] RE: Weird environment for usb-storage script? Michael Hale
2003-09-17 18:19 ` Michael Hale
2003-09-17 20:25 ` Joerg Sommer
2003-09-17 21:11 ` Michael Hale

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).