dhcpcd-run-hooks: fix typo/broken syntax for runit systems
This commit is contained in:
parent
53d6871cd2
commit
6514555b44
|
@ -0,0 +1,18 @@
|
|||
--- dhcpcd-run-hooks.in.orig 2016-10-09 01:07:17.000000000 -0700
|
||||
+++ dhcpcd-run-hooks.in 2016-12-27 15:48:58.515566036 -0800
|
||||
@@ -285,11 +285,11 @@
|
||||
_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"
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'dhcpcd'
|
||||
pkgname=dhcpcd
|
||||
version=6.11.5
|
||||
revision=1
|
||||
revision=2
|
||||
lib32disabled=yes
|
||||
build_style=configure
|
||||
configure_args="--prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --rundir=/run"
|
||||
|
|
Loading…
Reference in New Issue