# OpenRC hook : ${RC_SVCNAME:=dhcpcd} do_rc_service() { if [ "$RC_SVCNAME" ]; then IN_BACKGROUND=true /sbin/rc-service "$RC_SVCNAME" -- --quiet $@ fi } if $if_oneup && $if_ipwaited; then # runscript needs to grow a --inactive command do_rc_service start else do_rc_service --ifstarted stop fi