summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc/uci-defaults/network
blob: 35b2fccdc66d4c4aae459f2ae7d034ec7181bd1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
RT3X5X=`cat /proc/cpuinfo | grep RT3.5`
[ -z "${RT3X5X}" ] || {
	uci batch <<EOF
set network.lan.ifname=eth0.1
set network.wan=interface
set network.wan.ifname=eth0.2
set network.wan.proto=dhcp
commit network
EOF
}

uci commit network