From 7f27f31b4e106b1b2b36f54e38ff491afa098d1f Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 28 May 2020 12:06:16 +0000 Subject: 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. --- system/openrc/APKBUILD | 2 +- system/openrc/openrc.post-install | 2 +- 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 -- cgit v1.2.3-70-g09d2