Skip to content

Commit

Permalink
procd: simplify uxc init script
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
dangowrt committed Feb 13, 2022
1 parent 5625625 commit 5205010
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions package/system/procd/files/uxc.init
Expand Up @@ -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
}

0 comments on commit 5205010

Please sign in to comment.