projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added usb-storage hotpluging
[openwrt-10.03/.git]
/
package
/
base-files
/
files
/
etc
/
hotplug.d
/
usb
/
10-usb-storage
diff --git a/package/base-files/files/etc/hotplug.d/usb/10-usb-storage
b/package/base-files/files/etc/hotplug.d/usb/10-usb-storage
new file mode 100644
(file)
index 0000000..
14001f6
--- /dev/null
+++ b/
package/base-files/files/etc/hotplug.d/usb/10-usb-storage
@@ -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
+