0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-22 04:56:15 +00:00
openwrt/package/system/procd/files/uxc.init
Daniel Golle 5205010a54
procd: simplify uxc init script
'uxc boot' is inteded to be called multiple times, so there is not need
to guard the first call on boot -- the actual code anyway didn't do
that, so just remove it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-02-13 23:31:27 +00:00

17 lines
265 B
Bash

#!/bin/sh /etc/rc.common
START=99
USE_PROCD=1
NAME=uxc
PROG=/sbin/uxc
start_service() {
procd_open_instance "uxc"
procd_set_param command "$PROG" boot
procd_close_instance
}
service_triggers() {
procd_add_raw_trigger "mount.add" 3000 /etc/init.d/uxc start
}