summaryrefslogtreecommitdiff
path: root/system/openrc/openrc.post-install
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-28 12:06:16 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-28 12:06:16 +0000
commit7f27f31b4e106b1b2b36f54e38ff491afa098d1f (patch)
treeea598e1892506232706750cada0c14e578fab00a /system/openrc/openrc.post-install
parent9be8ae984b713a9f8f57eefe138d6f373c750da8 (diff)
downloadpackages-7f27f31b4e106b1b2b36f54e38ff491afa098d1f.tar.gz
packages-7f27f31b4e106b1b2b36f54e38ff491afa098d1f.tar.bz2
packages-7f27f31b4e106b1b2b36f54e38ff491afa098d1f.tar.xz
packages-7f27f31b4e106b1b2b36f54e38ff491afa098d1f.zip
system/openrc: conditionalise post-install on sysinit runlevel
The default runlevel is manipulated by s6-linux-init, which means our post-install script no longer runs on systems using s6 for init. This change uses the sysinit runlevel, which is not manipulated.
Diffstat (limited to 'system/openrc/openrc.post-install')
-rw-r--r--system/openrc/openrc.post-install2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/openrc/openrc.post-install b/system/openrc/openrc.post-install
index 0f6572ef7..9632de2ee 100644
--- a/system/openrc/openrc.post-install
+++ b/system/openrc/openrc.post-install
@@ -1,6 +1,6 @@
#!/bin/sh
-if [ -d /etc/runlevels ]; then
+if [ -d /etc/runlevels/sysinit ]; then
exit 0
fi