Module Name:    src
Committed By:   roy
Date:           Fri Oct 16 18:06:22 UTC 2015

Modified Files:
        src/etc/rc.d: dhcpcd

Log Message:
Fix the problem of just having a valid interface name in dhcpcd_flags.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/etc/rc.d/dhcpcd

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

Modified files:

Index: src/etc/rc.d/dhcpcd
diff -u src/etc/rc.d/dhcpcd:1.3 src/etc/rc.d/dhcpcd:1.4
--- src/etc/rc.d/dhcpcd:1.3	Sun Apr  6 17:13:57 2014
+++ src/etc/rc.d/dhcpcd	Fri Oct 16 18:06:22 2015
@@ -24,6 +24,10 @@ fi
 ifname="${myflags##* }"
 myflags="${myflags%% $ifname}"
 last_flag="${myflags##* }"
+# Address the problem of having just dhcpcd_flags=wm0
+if [ "$myflags" = "$last_flag" ]; then
+	last_flag="invalidinterfacename"
+fi
 if /sbin/ifconfig "$ifname" >/dev/null 2>&1 && 
     ! /sbin/ifconfig "$last_flag" >/dev/null 2>&1
 then

Reply via email to