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

1#!/bin/sh
2RT3X5X=`cat /proc/cpuinfo | grep RT3.5`
3[ -z "${RT3X5X}" ] || {
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