aboutsummaryrefslogtreecommitdiff
path: root/core/busybox/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-03-30 14:05:27 +0300
committerCem Keylan <cem@ckyln.com>2020-03-30 14:05:27 +0300
commit6dbf04260e2a63e9b3f7241ca2e8a64113a28e3d (patch)
tree2456c818c0722894e88a5a4f24a3cc9000f502ae /core/busybox/build
parenta936d2c266e21cabe0859318a9a2271fd1856975 (diff)
downloadrepository-6dbf04260e2a63e9b3f7241ca2e8a64113a28e3d.tar.gz
meta: install sysmgr services as well as runit services
Diffstat (limited to 'core/busybox/build')
-rwxr-xr-xcore/busybox/build15
1 files changed, 6 insertions, 9 deletions
diff --git a/core/busybox/build b/core/busybox/build
index cf68c6aa..7ea1dafc 100755
--- a/core/busybox/build
+++ b/core/busybox/build
@@ -31,15 +31,12 @@ done
# Set suid on busybox suid.
chmod u+s "$1/usr/bin/busybox-suid"
-# Install runit services
-install -Dm755 crond.run "$1/etc/sv/crond/run"
-install -Dm755 ntpd.run "$1/etc/sv/ntpd/run"
-install -Dm755 syslogd.run "$1/etc/sv/syslogd/run"
-install -Dm755 acpid.run "$1/etc/sv/acpid/run"
-ln -s /run/runit/supervise.crond "$1/etc/sv/crond/supervise"
-ln -s /run/runit/supervise.ntpd "$1/etc/sv/ntpd/supervise"
-ln -s /run/runit/supervise.syslogd "$1/etc/sv/syslogd/supervise"
-ln -s /run/runit/supervise.acpid "$1/etc/sv/acpid/supervise"
+# Install runit and sysmgr services
+for service in crond.run ntpd.run syslogd.run acpid.run ; do
+ install -Dm755 "$service" "$1/etc/sv/${service%.*}/run"
+ install -Dm755 "$service" "$1/etc/sysmgr/${service%.*}"
+ ln -s /run/runit/supervise.${service%.*} "$1/etc/sv/${service%.*}/supervise"
+done
# Install ntp config
install -Dm644 ntp.conf "$1/etc/ntp.conf"