commit 6d77ea79c95a7931833002579605a648ffcef4e0
parent 2f143b433b729fb81afc4da87e2f642c984d65e1
Author: Morel BĂ©renger <berenger.morel@neutralite.org>
Date: Thu, 14 Nov 2019 15:06:24 +0100
generate network services and enable lo
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/etc/runit/2 b/etc/runit/2
@@ -3,7 +3,16 @@
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
SVDIR=/var/lib/runit/service
-mkdir -p /var/log $SVDIR
+busybox ip link set up lo
+
+mkdir -p /var/log/fsck $SVDIR
+for i in $(busybox ip -o link | cut -f2 -d: | grep -v '\<lo\>')
+do
+ mkdir $SVDIR/$i/log -p
+ ln -s /etc/runit/log.run $SVDIR/$i/log/run
+ ln -s /etc/runit/dhcpc.run $SVDIR/$i/run
+done
+
find /etc/service/ -type l -execdir cp -r -L -t $SVDIR {} \+
# This script is also invoked in runit-systemd and runit-sysv packages.