diff options
author | John Crispin <john@openwrt.org> | 2009-10-23 16:51:51 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2009-10-23 16:51:51 +0000 |
commit | d95163658cacaad4935f361fb3257904c8df8e4f (patch) | |
tree | 43931bc85e59c7348b3fd6f25aef08a6086565c2 /target/linux/ramips/base-files/etc/uci-defaults/network | |
parent | 21367682e8ab9be4fda6b134c385e482b2ecf4d8 (diff) | |
download | upstream-d95163658cacaad4935f361fb3257904c8df8e4f.tar.gz upstream-d95163658cacaad4935f361fb3257904c8df8e4f.tar.bz2 upstream-d95163658cacaad4935f361fb3257904c8df8e4f.zip |
adds ethernet driver, esw needs to be moved to swconfig, driver is missing rt288x support, not a platform device yet
SVN-Revision: 18128
Diffstat (limited to 'target/linux/ramips/base-files/etc/uci-defaults/network')
-rwxr-xr-x | target/linux/ramips/base-files/etc/uci-defaults/network | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network new file mode 100755 index 0000000000..8d4c6d547d --- /dev/null +++ b/target/linux/ramips/base-files/etc/uci-defaults/network @@ -0,0 +1,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 |