Changeset 13258


Ignore:
Timestamp:
2008-11-17T11:47:02+01:00 (9 years ago)
Author:
jow
Message:

Prevent "SIOCSIFHWADDR: Device or resource busy" when trying to change mac address

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/network/config.sh

    r13165 r13258  
    233233        config_get macaddr "$config" macaddr 
    234234        grep "$iface:" /proc/net/dev > /dev/null && \ 
     235                $DEBUG ifconfig "$iface" down && \ 
    235236                $DEBUG ifconfig "$iface" ${macaddr:+hw ether "$macaddr"} ${mtu:+mtu $mtu} up 
    236237        set_interface_ifname "$config" "$iface" 
Note: See TracChangeset for help on using the changeset viewer.