projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[kernel/2.6.38] refresh patches
[openwrt.git]
/
target
/
linux
/
atheros
/
base-files
/
etc
/
uci-defaults
/
network
diff --git
a/target/linux/atheros/base-files/etc/uci-defaults/network
b/target/linux/atheros/base-files/etc/uci-defaults/network
index
af7cfb0
..
7e91e6a
100644
(file)
--- a/
target/linux/atheros/base-files/etc/uci-defaults/network
+++ b/
target/linux/atheros/base-files/etc/uci-defaults/network
@@
-1,7
+1,11
@@
#!/bin/sh
#!/bin/sh
-if [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" -a -x /sbin/swconfig ]; then
+if [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" -o \
+ -e "/sys/bus/mdio_bus/drivers/IC+ IP17xx/0:00" ] && \
+ [ -x /sbin/swconfig ];
+then
uci batch <<EOF
set network.eth0=switch
uci batch <<EOF
set network.eth0=switch
+set network.eth0.name=eth0
set network.eth0.reset=1
set network.eth0.enable_vlan=1
set network.eth0_1=switch_vlan
set network.eth0.reset=1
set network.eth0.enable_vlan=1
set network.eth0_1=switch_vlan
@@
-24,6
+28,7
@@
set network.lan.ifname=eth0.1
set network.wan=interface
set network.wan.ifname=eth0.2
set network.wan.proto=dhcp
set network.wan=interface
set network.wan.ifname=eth0.2
set network.wan.proto=dhcp
+commit network
EOF
HAS_SWITCH=1
fi
EOF
HAS_SWITCH=1
fi
@@
-33,6
+38,7
@@
fi
set network.wan=interface
set network.wan.ifname=eth1
set network.wan.proto=dhcp
set network.wan=interface
set network.wan.ifname=eth1
set network.wan.proto=dhcp
+commit network
EOF
}
EOF
}
This page took
0.026963 seconds
and
4
git commands to generate.