Mount usb filesystem at startup (#1077)
authorFlorian Fainelli <florian@openwrt.org>
Sun, 21 Jan 2007 18:11:27 +0000 (18:11 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 21 Jan 2007 18:11:27 +0000 (18:11 +0000)
SVN-Revision: 6163

package/base-files/files/etc/init.d/usb [new file with mode: 0644]

diff --git a/package/base-files/files/etc/init.d/usb b/package/base-files/files/etc/init.d/usb
new file mode 100644 (file)
index 0000000..78f1c0d
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+# Copyright (C) 2006 OpenWrt.org 
+#
+START=39
+start() {
+       [ -d /proc/bus/usb ] && {
+               /bin/mount -t usbfs none /proc/bus/usb
+       }               
+}