summaryrefslogtreecommitdiff
path: root/package/utils/usbmode/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/utils/usbmode/files')
-rw-r--r--package/utils/usbmode/files/usbmode.hotplug7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/utils/usbmode/files/usbmode.hotplug b/package/utils/usbmode/files/usbmode.hotplug
new file mode 100644
index 0000000000..4ef2bd8daa
--- /dev/null
+++ b/package/utils/usbmode/files/usbmode.hotplug
@@ -0,0 +1,7 @@
+. /lib/functions/procd.sh
+
+procd_open_service "usbmode"
+procd_open_instance
+procd_set_param command "/sbin/usbmode" -s
+procd_close_instance
+procd_close_service