openwrt-owl/package/utils/usbmode/files/usbmode.hotplug

8 lines
160 B
Plaintext

. /lib/functions/procd.sh
procd_open_service "usbmode"
procd_open_instance
procd_set_param command "/sbin/usbmode" -s
procd_close_instance
procd_close_service