diff options
author | Doug Freed <dwfreed@mtu.edu> | 2015-01-15 20:44:53 -0800 |
---|---|---|
committer | Doug Freed <dwfreed@mtu.edu> | 2015-01-15 20:44:53 -0800 |
commit | 0dd6367068b46c1cc0b5f83d2716d9cfd2a076ec (patch) | |
tree | 7b73da111540b0c00a9a001e44d77f2b84e6a3cb | |
parent | Bump version for the first systemd-supporting release. (diff) | |
download | netifrc-0dd6367068b46c1cc0b5f83d2716d9cfd2a076ec.tar.gz netifrc-0dd6367068b46c1cc0b5f83d2716d9cfd2a076ec.tar.bz2 netifrc-0dd6367068b46c1cc0b5f83d2716d9cfd2a076ec.zip |
functions.sh: fix check for OpenRC
Fix the check for OpenRC so that it actually matches whether it's
running under OpenRC.
Reported-By: Patrick McLean <chutzpah@gentoo.org>
-rw-r--r-- | sh/functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/functions.sh b/sh/functions.sh index 368bb73..e209701 100644 --- a/sh/functions.sh +++ b/sh/functions.sh @@ -16,7 +16,7 @@ else fi # runscript functions -if [ -z "$(command -v service_set_value >/dev/null 2>&1)" ]; then +if [ "$INIT" != "openrc" ]; then # OpenRC functions used in depend after() { |