Commit hnyman's changes
[lede.git] / files / etc / lan-repeater.sh
1 #!/bin/sh
2 uci set system.@system[0].hostname=router2
3 uci set network.lan.ipaddr=192.168.1.2
4 uci set network.lan.ip6ifaceid='::2'
5 uci set network.lan.gateway=192.168.1.1
6 uci set network.lan.dns=192.168.1.1
7 uci set network.henet.auto=0
8 uci set network.lan6=interface
9 uci set network.lan6.ifname=@lan
10 uci set network.lan6.proto=dhcpv6
11 uci set network.lan6.reqprefix=no
12 uci set wireless.@wifi-device[0].channel=48
13 uci set wireless.@wifi-device[1].channel=9
14 uci set dhcp.lan.ignore=1
15 uci set dhcp.lan.force=0
16 uci delete dhcp.lan.dhcpv6
17 uci delete dhcp.lan.ra
18 uci delete dhcp.lan.ndp
19 uci set upnpd.config.enable_natpmp=0
20 uci set upnpd.config.enable_upnp=0
21 uci commit dhcp
22 uci commit network
23 uci commit wireless
24 uci commit system
25 uci commit upnpd
26 /etc/init.d/dnsmasq disable
27 /etc/init.d/miniupnpd disable
28