forked from Ivasoft/openwrt
added usb-storage hotpluging
SVN-Revision: 7684
This commit is contained in:
13
package/base-files/files/etc/hotplug.d/usb/10-usb-storage
Normal file
13
package/base-files/files/etc/hotplug.d/usb/10-usb-storage
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
|
||||
case "$ACTION" in
|
||||
add)
|
||||
[ -n "${INTERFACE}" ] &&
|
||||
[ "$(expr substr ${INTERFACE} 1 2)" == "8/" ] && {
|
||||
/sbin/usb-storage &
|
||||
}
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user