USB stick and "autoplay"
Oliver Grawert
hostmaster at grawert.net
Sat Nov 20 22:26:58 UTC 2004
hi,
Am Samstag, den 20.11.2004, 22:47 +0100 schrieb Hubertus Hiden:
> I'd like to be able to start a script on a headless machine after
> plugging in a USB stick.
> Is that possible ? Does anybody know how ?
> Any hints would be greatly appreciated
you could write a script that wraps around lshal --monitor and waits
for the device to appear by any kind of pattern matching....
also hal-get-property is worth a look.
the values to check for are determined easily with your device manager.
:)
ciao
oli
--
got ubuntu ? --------------> GET UBUNTU !!!
http://www.ubuntulinux.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2125 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20041120/680dfff4/attachment.bin>
More information about the ubuntu-users
mailing list