mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
don't bring down interfaces when preparing them
SVN-Revision: 13079
This commit is contained in:
parent
a4f11ca22e
commit
9b75b9e35c
@ -90,8 +90,8 @@ prepare_interface() {
|
||||
[ "br-$config" = "$iface" -o -e "$iface" ] && return 0;
|
||||
|
||||
ifconfig "$iface" 2>/dev/null >/dev/null && {
|
||||
# make sure the interface is removed from any existing bridge and brought down
|
||||
ifconfig "$iface" down
|
||||
# make sure the interface is removed from any existing bridge and deconfigured
|
||||
ifconfig "$iface" 0.0.0.0
|
||||
unbridge "$iface"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user