aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rwxr-xr-xcore/busybox/build15
-rwxr-xr-xcore/dhcpcd/build5
-rwxr-xr-xcore/eudev/build3
3 files changed, 13 insertions, 10 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"
diff --git a/core/dhcpcd/build b/core/dhcpcd/build
index 5e4235c7..83a1b438 100755
--- a/core/dhcpcd/build
+++ b/core/dhcpcd/build
@@ -10,5 +10,8 @@ make
make DESTDIR="$1" install
# Install runit service.
-install -Dm 755 dhcpcd.run "$1/etc/sv/dhcpcd/run"
+install -Dm755 dhcpcd.run "$1/etc/sv/dhcpcd/run"
ln -s /run/runit/supervise.dhcpcd "$1/etc/sv/dhcpcd/supervise"
+
+# Install runit service.
+install -Dm755 dhcpcd.run "$1/etc/sysmgr/dhcpcd"
diff --git a/core/eudev/build b/core/eudev/build
index 9aead0c8..297c9920 100755
--- a/core/eudev/build
+++ b/core/eudev/build
@@ -13,3 +13,6 @@ make DESTDIR="$1" install
# Install runit service.
install -Dm755 udevd.run "$1/etc/sv/udevd/run"
ln -s /run/runit/supervise.udevd "$1/etc/sv/udevd/supervise"
+
+# Install sysmgr service.
+install -Dm755 udevd.run "$1/etc/sysmgr/udevd"