From: Roy Marples Date: Sun, 15 Jan 2017 13:46:52 +0000 (+0000) Subject: Fix runit service handling, [62772337e0]. X-Git-Tag: v6.11.6~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48ad96637f167fc61bc43787bad5e765a2f22642;p=thirdparty%2Fdhcpcd.git Fix runit service handling, [62772337e0]. --- diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in index a8f3ad90..78448cc6 100644 --- a/dhcpcd-run-hooks.in +++ b/dhcpcd-run-hooks.in @@ -285,11 +285,11 @@ detect_init() _service_exists="/usr/sbin/service \$1 $status >/dev/null 2>&1" _service_cmd="/usr/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" + _service_exists="/bin/sv status \$1 >/dev/null 2>&1" + _service_cmd="/bin/sv \$2 \$1" elif [ -x /usr/bin/sv ]; then - _service_exists="/usr/bin/sv status \1 >/dev/null 2>&1" - _service_cmd="/usr/bin/sv \$1 \$2" + _service_exists="/usr/bin/sv status \$1 >/dev/null 2>&1" + _service_cmd="/usr/bin/sv \$2 \$1" 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"