netmode: remove variables from templates which is automatically set on first boot.

In Iopsys 5 each subsystem has to take care of its own data. If netmode modifies
the hostname, SSID etc. It by it self has to generate fully valid UCI data. If
netmode needs help with that it may use the scripts in /rom/etc/uci-defaults
This commit is contained in:
Ronny Nilsson 2020-01-07 14:16:25 +01:00
parent 708a417086
commit 34343d4824
7 changed files with 31 additions and 26 deletions

View file

@ -18,8 +18,8 @@ config interface 'lan'
config interface 'wan'
option type 'anywan'
option proto 'dhcp'
option hostname 'iopsys-$MAC'
option vendorid '$HARDWAREID'
#option hostname AUTO-CREATED AT FIRST BOOT
#option vendorid AUTO-CREATED AT FIRST BOOT
option ifname 'ptm0.1 atm0.1 $WAN.1'
option ipv6 '1'

View file

@ -38,10 +38,10 @@ config wifi-iface
option device 'wl0'
option network 'lan'
option mode 'ap'
option ssid 'iopsys-$BSSID4'
#option ssid AUTO-CREATED AT FIRST BOOT
option encryption 'psk2'
option cipher 'auto'
option key '$WPAKEY'
#option key AUTO-CREATED AT FIRST BOOT
option gtk_rekey '3600'
option macfilter 'disable'
option wps '1'
@ -78,10 +78,10 @@ config wifi-iface
option device 'wl1'
option network 'lan'
option mode 'ap'
option ssid 'iopsys-$BSSID4'
#option ssid AUTO-CREATED AT FIRST BOOT
option encryption 'mixed-psk'
option cipher 'auto'
option key '$WPAKEY'
#option key AUTO-CREATED AT FIRST BOOT
option gtk_rekey '3600'
option macfilter 'disable'
option wps '1'

View file

@ -6,21 +6,24 @@ config interface 'loopback'
config device 'lan_dev'
option name 'eth0.1'
option macaddr '$MACLAN'
# Unused?
#option macaddr '$MACLAN'
option vid 1
config interface 'wan'
option type 'bridge'
option ifname 'eth0.2 eth0.1'
option proto 'dhcp'
option hostname 'iopsys-$MAC'
#option hostname AUTO-CREATED AT FIRST BOOT
option reqopts '66 67 128 224'
option igmp_snooping '0'
option macaddr '$MACWAN'
# Unused?
#option macaddr '$MACWAN'
config device 'wan_dev'
option name 'eth0.2'
option macaddr '$MACWAN'
# Unused?
#option macaddr '$MACWAN'
option vid 2
config interface 'wan6'

View file

@ -19,9 +19,9 @@ config wifi-iface
option device ra0
option network wan
option mode ap
option ssid iopsys-$BSSID4
#option ssid AUTO-CREATED AT FIRST BOOT
option encryption psk2
option key $WPAKEY
#option key AUTO-CREATED AT FIRST BOOT
option ifname ra0
option wps 1
@ -38,9 +38,9 @@ config wifi-iface
option device rai0
option network wan
option mode ap
option ssid iopsys-$BSSID4
#option ssid AUTO-CREATED AT FIRST BOOT
option encryption psk2
option key $WPAKEY
#option key AUTO-CREATED AT FIRST BOOT
option ifname rai0
option wps 1
@ -48,8 +48,8 @@ config wifi-iface
option device rai0
option network wan
option mode wet
option ssid iopsys-$BSSID4
#option ssid AUTO-CREATED AT FIRST BOOT
option encryption psk2
option key $WPAKEY
#option key AUTO-CREATED AT FIRST BOOT
option ifname apclii0

View file

@ -18,8 +18,8 @@ config interface 'lan'
config interface 'wan'
option type 'anywan'
option proto 'dhcp'
option hostname 'iopsys-$MAC'
option vendorid '$HARDWAREID'
#option hostname AUTO-CREATED AT FIRST BOOT
#option vendorid AUTO-CREATED AT FIRST BOOT
option ifname 'ptm0.1 atm0.1 $WAN.1'
option ipv6 '1'

View file

@ -38,10 +38,10 @@ config wifi-iface
option device 'wl0'
option network 'lan'
option mode 'ap'
option ssid 'iopsys-$BSSID4'
#option ssid AUTO-CREATED AT FIRST BOOT
option encryption 'psk2'
option cipher 'auto'
option key '$WPAKEY'
#option key AUTO-CREATED AT FIRST BOOT
option gtk_rekey '3600'
option macfilter 'disable'
option wps '1'
@ -78,10 +78,10 @@ config wifi-iface
option device 'wl1'
option network 'lan'
option mode 'ap'
option ssid 'iopsys-$BSSID4'
#option ssid AUTO-CREATED AT FIRST BOOT
option encryption 'mixed-psk'
option cipher 'auto'
option key '$WPAKEY'
#option key AUTO-CREATED AT FIRST BOOT
option gtk_rekey '3600'
option macfilter 'disable'
option wps '1'

View file

@ -15,19 +15,21 @@ config interface 'lan'
config device 'lan_dev'
option name 'eth0.1'
option macaddr '$MACLAN'
# Unused?
#option macaddr '$MACLAN'
option vid 1
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
option hostname 'iopsys-$MAC'
option vendorid '$HARDWAREID'
#option hostname AUTO-CREATED AT FIRST BOOT
#option vendorid AUTO-CREATED AT FIRST BOOT
option reqopts '66 67 128 224'
config device 'wan_dev'
option name 'eth0.2'
option macaddr '$MACWAN'
# Unused?
#option macaddr '$MACWAN'
option vid 2
config interface 'wan6'