commit:     0dd6367068b46c1cc0b5f83d2716d9cfd2a076ec
Author:     Doug Freed <dwfreed <AT> mtu <DOT> edu>
AuthorDate: Fri Jan 16 04:44:53 2015 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jan 16 04:44:53 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/netifrc.git;a=commit;h=0dd63670

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 <AT> gentoo.org>

---
 sh/functions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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() {

Reply via email to