]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Support runit (untested)
authorRoy Marples <roy@marples.name>
Fri, 6 Mar 2015 10:03:25 +0000 (10:03 +0000)
committerRoy Marples <roy@marples.name>
Fri, 6 Mar 2015 10:03:25 +0000 (10:03 +0000)
dhcpcd-run-hooks.in

index 34c7dbcf9144749355f1d0423d89c21ca6f1b854..8094920e8544dd425dd3ab676f460dab216d93dc 100644 (file)
@@ -280,6 +280,12 @@ detect_init()
        elif [ -x /sbin/service ]; then
                _service_exists="/sbin/service \$1 >/dev/null 2>&1"
                _service_cmd="/sbin/service \$1 \$2"
+       elif [ -x /bin/sv ]; then
+               _service_exists="/bin/sv status \1 >/dev/null 2>&1"
+               _service_cmd="/bin/sv \$1 \$2"
+       elif [ -x /usr/bin/sv ]; then
+               _service_exists="/usr/bin/sv status \1 >/dev/null 2>&1"
+               _service_cmd="/usr/bin/sv \$1 \$2"
        elif [ -e /etc/slackware-version -a -d /etc/rc.d ]; then
                _service_exists="[ -x /etc/rc.d/rc.\$1 ]"
                _service_cmd="/etc/rc.d/rc.\$1 \$2"