another base-file: Index: package/base-files/files/sbin/ifdown =================================================================== --- package/base-files/files/sbin/ifdown (Revision 11157) +++ package/base-files/files/sbin/ifdown (Arbeitskopie) @@ -59,6 +59,11 @@ [ ."$device" != ."$ifname" ] || device= for dev in $ifname $device; do ifconfig "$dev" 0.0.0.0 down >/dev/null 2>/dev/null + + [ "$?" -ne 0 ] && { # returncode not 0 -> ifconfig n/a -> fallback using ip + + ip link set dev "$dev" down >/dev/null 2>/dev/null + } done config_get iftype "$cfg" type
signature.asc
Description: Digital signature
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel