Only a small one.
Maybe we should also flush the ip-address?

Signed-off-by: Bastian Bittorf <[EMAIL PROTECTED]>

---

Index: package/base-files/files/sbin/ifdown
===================================================================
--- package/base-files/files/sbin/ifdown        (Revision 11157)
+++ package/base-files/files/sbin/ifdown        (Arbeitskopie)
@@ -58,7 +58,9 @@
 
 [ ."$device" != ."$ifname" ] || device=
 for dev in $ifname $device; do
-       ifconfig "$dev" 0.0.0.0 down >/dev/null 2>/dev/null
+       ifconfig "$dev" 0.0.0.0 down >/dev/null 2>/dev/null || {
+               ip link set dev "$dev" down >/dev/null 2>/dev/null      # 
ifconfig n/a -> fallback using ip
+       }
 done
 
 config_get iftype "$cfg" type

Attachment: signature.asc
Description: Digital signature

_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to