diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-12-13 16:43:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-12-13 16:43:15 +0000 |
commit | 6a75a79a668b7d8121031bbdcb51df4d276e8f33 (patch) | |
tree | d3a5d6e0864a603dcfd5c6e87872155781671439 /package/utils/usbmode/files/usbmode.init | |
parent | 68daab992f20ffcf5e312d562868f6903c9e3d63 (diff) | |
download | master-187ad058-6a75a79a668b7d8121031bbdcb51df4d276e8f33.tar.gz master-187ad058-6a75a79a668b7d8121031bbdcb51df4d276e8f33.tar.bz2 master-187ad058-6a75a79a668b7d8121031bbdcb51df4d276e8f33.zip |
usbmode: add an init script to switch devices that show up too early for the hotplug script
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39047 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/usbmode/files/usbmode.init')
-rwxr-xr-x | package/utils/usbmode/files/usbmode.init | 12 |
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 +} |