diff options
| author | Roy Marples <roy@marples.name> | 2017-01-15 13:46:52 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-01-15 13:46:52 +0000 |
| commit | 48ad96637f167fc61bc43787bad5e765a2f22642 (patch) | |
| tree | 3f98c7e5d54a89e917b0d77e190bb3aadf44b7df | |
| parent | f9f99f405ec15e8b254d1e8bc4b2e4546b4b96f6 (diff) | |
| download | dhcpcd-48ad96637f167fc61bc43787bad5e765a2f22642.tar.xz | |
Fix runit service handling, [62772337e0].
| -rw-r--r-- | dhcpcd-run-hooks.in | 8 |
1 files changed, 4 insertions, 4 deletions
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" |
