-uci set network.globals='globals'
-uci set network.globals.packet_steering=1
-uci set network.eth0=device
-uci set network.eth0.name=eth0
-uci set network.lan0=device
-uci set network.lan0.name=lan0
-uci set network.lan1=device
-uci set network.lan1.name=lan1
-uci set network.lan2=device
-uci set network.lan2.name=lan2
-uci set network.lan3=device
-uci set network.lan3.name=lan3
-
-uci commit network
-
-exit 0
+uci -q get network.globals.packet_steering >/dev/null || {
+ uci set network.globals='globals'
+ uci set network.globals.packet_steering=1
+ uci commit network
+}