stuff
This commit is contained in:
parent
c168fdc170
commit
8e99b367d3
1 changed files with 12 additions and 3 deletions
|
@ -46,9 +46,18 @@ uci set firewall.@defaults[0].forward=ACCEPT
|
|||
# Set hostname
|
||||
uci set system.@system[0].hostname="${hostname}"
|
||||
|
||||
# Set IPv4 address on LAN
|
||||
uci set network.lan.ipaddr="${ipv4address}"
|
||||
uci set network.lan.gateway="${ipv4gw}"
|
||||
# Set IPv4 address on WAN for NAT64 upstream
|
||||
uci set network.wan.ipaddr="${ipv4address}"
|
||||
uci set network.wan.netmask="255.255.255.0" # hardcoded, usually correct, fix this script if needed
|
||||
uci set network.wan.gateway="${ipv4gw}"
|
||||
uci set network.wan.proto="static"
|
||||
|
||||
# Make LAN IPv6 dynamic
|
||||
uci delete network.lan.ipaddr
|
||||
uci delete network.lan.netmask
|
||||
uci delete network.lan.gateway
|
||||
uci set network.wan.proto="dhcpv6"
|
||||
|
||||
|
||||
# Do something wireless (?)
|
||||
# disable?
|
||||
|
|
Loading…
Reference in a new issue