From 000a20ee9692bb5a5054d424097fafdca2264980 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 13 Dec 2013 16:43:15 +0000 Subject: usbmode: add an init script to switch devices that show up too early for the hotplug script Signed-off-by: Felix Fietkau SVN-Revision: 39047 --- package/utils/usbmode/files/usbmode.init | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 package/utils/usbmode/files/usbmode.init (limited to 'package/utils/usbmode/files/usbmode.init') 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 +} -- cgit v1.2.3