aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/usbmode/files/usbmode.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/utils/usbmode/files/usbmode.init')
-rwxr-xr-xpackage/utils/usbmode/files/usbmode.init12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/utils/usbmode/files/usbmode.init b/package/utils/usbmode/files/usbmode.init
new file mode 100755
index 0000000000..43e8ec564d
--- /dev/null
+++ b/package/utils/usbmode/files/usbmode.init
@@ -0,0 +1,12 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2013 OpenWrt.org
+
+START=20
+USE_PROCD=1
+
+start_service()
+{
+ procd_open_instance
+ procd_set_param command "/sbin/usbmode" -s
+ procd_close_instance
+}