summaryrefslogtreecommitdiff
path: root/system/openrc
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
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')
-rw-r--r--system/openrc/APKBUILD2
-rw-r--r--system/openrc/openrc.post-install2
2 files changed, 2 insertions, 2 deletions
diff --git a/system/openrc/APKBUILD b/system/openrc/APKBUILD
index 2b1c5f520..ac9d8b184 100644
--- a/system/openrc/APKBUILD
+++ b/system/openrc/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer:
pkgname=openrc
pkgver=0.24.1
-pkgrel=8
+pkgrel=9
pkgdesc="OpenRC manages the services, startup and shutdown of a host"
url="https://github.com/OpenRC/openrc"
arch="all"
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