mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
@@ -1,7 +1 @@
|
||||
. /lib/functions/procd.sh
|
||||
|
||||
procd_open_service "usbmode"
|
||||
procd_open_instance
|
||||
procd_set_param command "/sbin/usbmode" -s
|
||||
procd_close_instance
|
||||
procd_close_service
|
||||
/etc/init.d/usbmode start
|
||||
|
||||
Reference in New Issue
Block a user