@@ -44,6 +44,91 @@ generate_static_network() {
4444 set network.loopback.proto='static'
4545 set network.loopback.ipaddr='127.0.0.1'
4646 set network.loopback.netmask='255.0.0.0'
47+
48+ delete network.4G_QMI_1
49+ set network.4G_QMI_1=interface
50+ set network.4G_QMI_1.proto='qmi'
51+ set network.4G_QMI_1.device='/dev/cdc-wdm0'
52+ set network.4G_QMI_1.metric=11
53+ add_list firewall.cfg03dc81.network='4G_QMI_1'
54+
55+ delete network.4G_PPP_1
56+ set network.4G_PPP_1=interface
57+ set network.4G_PPP_1.proto='3g'
58+ set network.4G_PPP_1.device='/dev/ttyUSB2'
59+ set network.4G_PPP_1.metric=12
60+ add_list firewall.cfg03dc81.network='4G_PPP_1'
61+
62+ delete network.4G_ETH_1
63+ set network.4G_ETH_1=interface
64+ set network.4G_ETH_1.proto='dhcp'
65+ set network.4G_ETH_1.device='usb0'
66+ set network.4G_ETH_1.metric=13
67+ add_list firewall.cfg03dc81.network='4G_ETH_1'
68+
69+ delete network.4G_QMI_2
70+ set network.4G_QMI_2=interface
71+ set network.4G_QMI_2.proto='qmi'
72+ set network.4G_QMI_2.device='/dev/cdc-wdm1'
73+ set network.4G_QMI_2.metric=21
74+ add_list firewall.cfg03dc81.network='4G_QMI_2'
75+
76+ delete network.4G_PPP_2
77+ set network.4G_PPP_2=interface
78+ set network.4G_PPP_2.proto='3g'
79+ set network.4G_PPP_2.device='/dev/ttyUSB7'
80+ set network.4G_PPP_2.metric=22
81+ add_list firewall.cfg03dc81.network='4G_PPP_2'
82+
83+ delete network.4G_ETH_2
84+ set network.4G_ETH_2=interface
85+ set network.4G_ETH_2.proto='dhcp'
86+ set network.4G_ETH_2.device='usb1'
87+ set network.4G_ETH_2.metric=23
88+ add_list firewall.cfg03dc81.network='4G_ETH_2'
89+
90+
91+ ######### Oolite V7 802.11ah config start #########
92+ # /etc/config/dhcp
93+ set dhcp.11AH_AP=dhcp
94+ set dhcp.11AH_AP.interface='11AH_AP'
95+ set dhcp.11AH_AP.start='1'
96+ set dhcp.11AH_AP.limit='9'
97+ set dhcp.11AH_AP.leasetime='2d'
98+
99+ set dhcp.@dnsmasq[-1].sequential_ip=1
100+
101+ # /etc/config/firewall
102+ add_list firewall.cfg02dc81.network='11AH_AP'
103+
104+ # /etc/config/network
105+ set network.11AH_AP=interface
106+ set network.11AH_AP.proto='static'
107+ set network.11AH_AP.device='hg0'
108+ set network.11AH_AP.ipaddr='10.10.10.10'
109+ set network.11AH_AP.netmask='255.255.255.0'
110+
111+ # /etc/config/firewall
112+ add_list firewall.cfg03dc81.network='11AH_STA'
113+
114+ # /etc/config/network
115+ set network.11AH_STA=interface
116+ set network.11AH_STA.proto='dhcp'
117+ set network.11AH_STA.device='hg0'
118+ set network.11AH_STA.auto='0'
119+ set network.11AH_STA.metric='77'
120+
121+ # /etc/config/firewall
122+ add firewall zone # =cfg0edc81
123+ set firewall.@zone[-1].name='bridge'
124+ set firewall.@zone[-1].input='ACCEPT'
125+ set firewall.@zone[-1].output='ACCEPT'
126+ set firewall.@zone[-1].forward='ACCEPT'
127+ add firewall forwarding # =cfg0fad58
128+ set firewall.@forwarding[-1].src='lan'
129+ set firewall.@forwarding[-1].dest='bridge'
130+ ######### Oolite V7 802.11ah config end #########
131+
47132 EOF
48133 [ -e /proc/sys/net/ipv6 ] && {
49134 uci -q batch << -EOF
0 commit comments