diff options
Diffstat (limited to 'core/busybox')
-rwxr-xr-x | core/busybox/build | 15 |
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" |