forked from Ivasoft/openwrt
base-files: uci-defaults-new: remove reset/enable args of ucidef_add_switch()
Out of 69 switch definitions, only 3 pass something different than "1" as values for reset and enable, with one of those three being invalid. This change ... * removes the reset and enable arguments from ucidef_add_switch() * unconditionally writes reset:1 and enable:1 to JSON * converts the three users of nonstandard values to ucidef_add_switch_attr() Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47720
This commit is contained in:
@@ -348,7 +348,8 @@ dlan-pro-500-wp)
|
||||
|
||||
dlan-pro-1200-ac)
|
||||
ucidef_set_interface_lan "eth0"
|
||||
ucidef_add_switch "switch0" "1" "0"
|
||||
ucidef_add_switch "switch0"
|
||||
ucidef_add_switch_attr "switch0" "reset" "false"
|
||||
ucidef_add_switch_ports "switch0" \
|
||||
"0@eth0" "2:lan" "3:lan" "4:lan"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user