aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-01-21 18:11:27 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-01-21 18:11:27 +0000
commit78af4adbc529958c866292324f551fd07bd51bdb (patch)
tree9f8a5f60a5a7e0224ae8c949c8e5f62817a037db /package/base-files
parent0aec54a5b557e94f0e13f068fc2ce51dbdd48749 (diff)
downloadupstream-78af4adbc529958c866292324f551fd07bd51bdb.tar.gz
upstream-78af4adbc529958c866292324f551fd07bd51bdb.tar.bz2
upstream-78af4adbc529958c866292324f551fd07bd51bdb.zip
Mount usb filesystem at startup (#1077)
SVN-Revision: 6163
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/files/etc/init.d/usb9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/usb b/package/base-files/files/etc/init.d/usb
new file mode 100644
index 0000000000..78f1c0d6a5
--- /dev/null
+++ b/package/base-files/files/etc/init.d/usb
@@ -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
+ }
+}