aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-02-13 23:26:45 +0000
committerDaniel Golle <daniel@makrotopia.org>2022-02-13 23:31:27 +0000
commit5205010a546fed2227c208f6bd025b47398f4cf3 (patch)
tree0e3349394bd4e8ed27608fcb0a7278386cf7baa6
parent56256259a1b970db23411af73875b87850750e50 (diff)
downloadupstream-5205010a546fed2227c208f6bd025b47398f4cf3.tar.gz
upstream-5205010a546fed2227c208f6bd025b47398f4cf3.tar.bz2
upstream-5205010a546fed2227c208f6bd025b47398f4cf3.zip
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>
-rw-r--r--package/system/procd/files/uxc.init8
1 files changed, 1 insertions, 7 deletions
diff --git a/package/system/procd/files/uxc.init b/package/system/procd/files/uxc.init
index 1e75b796f8..0b51925a71 100644
--- a/package/system/procd/files/uxc.init
+++ b/package/system/procd/files/uxc.init
@@ -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
}