Skip to content

Commit ef14138

Browse files
committed
add loopback
1 parent 4802b4d commit ef14138

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Install/openWRT23_install.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,17 @@ wait $processes >> /root/install.log
17621762

17631763
if [ "$VLAN_ENABLE" = "1" ]
17641764
then
1765+
uci add network interface >> /root/install.log
1766+
uci rename network.@interface[-1]='Loopback'
1767+
processes=$(uci commit && reload_config)
1768+
wait $processes >> /root/install.log
1769+
uci set network.Loopback.proto='static'
1770+
uci set network.Loopback.ipaddr='127.0.0.1'
1771+
uci set network.Loopback.netmask='255.255.255.0'
1772+
uci set network.Loopback.device='lo'
1773+
processes=$(uci commit && reload_config)
1774+
wait $processes >> /root/install.log
1775+
17651776
uci add network interface >> /root/install.log
17661777
uci rename network.@interface[-1]='TELEKOM'
17671778
processes=$(uci commit && reload_config)

0 commit comments

Comments
 (0)