summary refs log tree commit diff
path: root/2
diff options
context:
space:
mode:
Diffstat (limited to '2')
-rwxr-xr-x28
1 files changed, 3 insertions, 5 deletions
diff --git a/2 b/2
index 8897503..0020949 100755
--- a/2
+++ b/2
@@ -16,11 +16,9 @@ done
 
 [ -x /etc/rc.local ] && /etc/rc.local
 
-# Create runlevel and then make it the default.
-if [ -d /etc/runit/runsvdir/${runlevel} ]; then
-    mkdir -p /run/runit/runsvdir
-    ln -s /etc/runit/runsvdir/${runlevel} /run/runit/runsvdir/current
-fi
+runsvchdir "${runlevel}"
+mkdir -p /run/runit/runsvdir
+ln -s /etc/runit/runsvdir/current /run/runit/runsvdir/current
 
 exec env - PATH=$PATH \
     runsvdir -P /run/runit/runsvdir/current 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'