procd: simplify uxc init script
authorDaniel Golle <daniel@makrotopia.org>
Sun, 13 Feb 2022 23:26:45 +0000 (23:26 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 13 Feb 2022 23:31:27 +0000 (23:31 +0000)
'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>
package/system/procd/files/uxc.init

index 1e75b796f8eebdb4fdbf431b1a2973b3ff28803a..0b51925a7198a87de41e011c493a8fdbb556588f 100644 (file)
@@ -6,17 +6,11 @@ NAME=uxc
 PROG=/sbin/uxc
 
 start_service() {
-       [ "${__BOOT_UXC}" = "1" ] || return 0
        procd_open_instance "uxc"
        procd_set_param command "$PROG" boot
        procd_close_instance
 }
 
-boot() {
-       __BOOT_UXC=1
-       start
-}
-
 service_triggers() {
-       procd_add_raw_trigger "mount.add" 3000 /etc/init.d/uxc boot
+       procd_add_raw_trigger "mount.add" 3000 /etc/init.d/uxc start
 }