mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 06:55:31 +02:00
Prevent "SIOCSIFHWADDR: Device or resource busy" when trying to change mac address
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13258 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5d611d8f73
commit
b80bf0c001
@ -232,6 +232,7 @@ setup_interface() {
|
||||
config_get mtu "$config" mtu
|
||||
config_get macaddr "$config" macaddr
|
||||
grep "$iface:" /proc/net/dev > /dev/null && \
|
||||
$DEBUG ifconfig "$iface" down && \
|
||||
$DEBUG ifconfig "$iface" ${macaddr:+hw ether "$macaddr"} ${mtu:+mtu $mtu} up
|
||||
set_interface_ifname "$config" "$iface"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user