I was wondering if there's a way to take an action when a USB pen drive is
inserted, and
found a vague reference to /sbin/hotplug.
But it doesn't seem to work.
$ cat /proc/sys/kernel/hotplug
/sbin/hotplug
Implies it should work.
Created /sbin/hotplug containing
:
env > /tmp/hotplug
Then inserted a USB pen drive. Got all the right messages in dmesg:
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
$ ls-lR /dev/scst
/dev/scsi/host0/bus0/target0/lun0:
brw------- 1 root root 8, 0 Jan 1 1970 disc
brw------- 1 root root 8, 1 Jan 1 1970 part1
But /tmp/hotplug was not created.
What am I missing?
Martin
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|