openwrt-chaoscalmer-uappro/package/utils/usbmode/files/usbmode.init
nbd 539e3cc6ad 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
2013-12-13 16:43:15 +00:00

12 lines
188 B
Bash
Executable file

#!/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
}