version 1.1.6.2, 2010/04/21 05:21:24 |
version 1.5, 2016/01/07 22:03:00 |
|
|
#!/bin/sh |
#!/bin/sh |
|
|
|
# $NetBSD$ |
|
|
# PROVIDE: dhcpcd |
# PROVIDE: dhcpcd |
# REQUIRE: network mountcritlocal |
# REQUIRE: network mountcritlocal |
# BEFORE: NETWORKING |
# BEFORE: NETWORKING |
Line 9 $_rc_subr_loaded . /etc/rc.subr |
|
Line 11 $_rc_subr_loaded . /etc/rc.subr |
|
name=dhcpcd |
name=dhcpcd |
rcvar=$name |
rcvar=$name |
command=/sbin/$name |
command=/sbin/$name |
pidfile=/var/run/$name.pid |
extra_commands="reload" |
|
|
load_rc_config $name |
load_rc_config $name |
|
|
|
# Work out what pidfile dhcpcd will use based on flags |
|
if [ -n "$flags" ]; then |
|
myflags=$flags |
|
else |
|
eval myflags=\$${name}_flags |
|
fi |
|
pidfile=$(eval $command -P $myflags 2>/dev/null) |
|
: ${pidfile:=/var/run/$name.pid} |
|
unset myflags |
|
|
run_rc_command "$1" |
run_rc_command "$1" |