4 # REQUIRE: network mountcritlocal
7 $_rc_subr_loaded .
/etc
/rc.subr
12 extra_commands
="reload"
16 # If the last argument to dhcpcd is a valid interface and the prior argument
17 # is not then dhcpcd will start on one interface only and create a pidfile
18 # based on the interface name. See PR bin/43490.
19 if [ -n "$flags" ]; then
22 eval myflags
=\$
${name}_flags
24 ifname
="${myflags##* }"
25 myflags
="${myflags%% $ifname}"
26 last_flag
="${myflags##* }"
27 if /sbin
/ifconfig
"$ifname" >/dev
/null
2>&1 &&
28 ! /sbin
/ifconfig
"$last_flag" >/dev
/null
2>&1
30 pidfile
=/var
/run
/$name-"$ifname".pid
32 pidfile
=/var
/run
/$name.pid
34 unset myflags ifname last_flag