2
0
forked from Ivasoft/openwrt

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>

SVN-Revision: 39047
This commit is contained in:
Felix Fietkau
2013-12-13 16:43:15 +00:00
parent 47730fe355
commit 000a20ee96
3 changed files with 16 additions and 9 deletions

View File

@@ -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
}