mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 19:12:33 +08:00
base-files: bring bridge port iface down before changing the mac (#7111)
SVN-Revision: 21595
This commit is contained in:
parent
8bc961239b
commit
482b8385d2
@ -170,6 +170,8 @@ prepare_interface() {
|
||||
# result in another setup_interface() call, so we simply stop processing
|
||||
# the current event at this point.
|
||||
}
|
||||
|
||||
[ -n "$macaddr" ] && ifconfig "$iface" down 2>/dev/null >/dev/null
|
||||
ifconfig "$iface" ${macaddr:+hw ether "${macaddr}"} up 2>/dev/null >/dev/null
|
||||
return 1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user