mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-15 21:03:49 +08:00
base-files: board.json's switch reset means existence, not argument
Don't pass the value unconditionally to swconfig as a parameter but instead only call reset if it is 1. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
This commit is contained in:
parent
b43c190079
commit
fd952c7a83
@ -43,7 +43,10 @@ preinit_config_switch() {
|
|||||||
json_select ..
|
json_select ..
|
||||||
|
|
||||||
if [ "$device" = "$lan_if" ]; then
|
if [ "$device" = "$lan_if" ]; then
|
||||||
swconfig dev $name set reset $reset
|
if [ "$reset" -eq "1" ]; then
|
||||||
|
swconfig dev $name set reset
|
||||||
|
fi
|
||||||
|
|
||||||
swconfig dev $name set enable_vlan $enable
|
swconfig dev $name set enable_vlan $enable
|
||||||
swconfig dev $name vlan $role set ports "$ports"
|
swconfig dev $name vlan $role set ports "$ports"
|
||||||
swconfig dev $name set apply
|
swconfig dev $name set apply
|
||||||
|
Loading…
Reference in New Issue
Block a user