Mercurial > hg > dhcpcd
changeset 2996:20c2c44431c9 draft
Support runit (untested)
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Fri, 06 Mar 2015 10:03:25 +0000 |
| parents | 71bf6d24a608 |
| children | 76a226c99061 |
| files | dhcpcd-run-hooks.in |
| diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcpcd-run-hooks.in Fri Mar 06 08:40:35 2015 +0000 +++ b/dhcpcd-run-hooks.in Fri Mar 06 10:03:25 2015 +0000 @@ -280,6 +280,12 @@ 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"
