[BACK]Return to dhcpcd CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc / rc.d

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/etc/rc.d/dhcpcd between version and 1.2

version, 2009/05/10 21:32:57 version 1.2, 2013/06/25 13:02:53
Line 9  $_rc_subr_loaded . /etc/rc.subr
Line 9  $_rc_subr_loaded . /etc/rc.subr
 name=dhcpcd  name=dhcpcd
 rcvar=$name  rcvar=$name
 command=/sbin/$name  command=/sbin/$name
 load_rc_config $name  load_rc_config $name
   # If the last argument to dhcpcd is a valid interface and the prior argument
   # is not then dhcpcd will start on one interface only and create a pidfile
   # based on the interface name. See PR bin/43490.
   if [ -n "$flags" ]; then
           eval myflags=\$${name}_flags
   ifname="${myflags##* }"
   myflags="${myflags%% $ifname}"
   last_flag="${myflags##* }"
   if /sbin/ifconfig "$ifname" >/dev/null 2>&1 &&
       ! /sbin/ifconfig "$last_flag" >/dev/null 2>&1
   unset myflags ifname last_flag
 run_rc_command "$1"  run_rc_command "$1"

Removed from v.  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>