Root/target/linux/ramips/base-files/etc/uci-defaults/network

1#!/bin/sh
2RT305X=`cat /proc/cpuinfo | grep RT305`
3[ -z "${RT305X}" ] || {
4    uci batch <<EOF
5set network.lan.ifname=eth0.1
6set network.wan=interface
7set network.wan.ifname=eth0.2
8set network.wan.proto=dhcp
9commit network
10EOF
11}
12
13uci commit network
14

Archive Download this file



interactive