summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files/etc/uci-defaults/network
blob: 8d4c6d547d0051fbd1e093449ee8714a4c34981e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
RT305X=`cat /proc/cpuinfo | grep RT305`
[ -z "${RT305X}" ] || {
	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