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>
This commit is contained in:
Daniel Golle 2022-02-13 23:26:45 +00:00
parent 56256259a1
commit 5205010a54
No known key found for this signature in database
GPG Key ID: 5A8F39C31C3217CA
1 changed files with 1 additions and 7 deletions

View 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
}