mirror of https://github.com/hak5/openwrt.git
parent
e9df50f1b6
commit
adcbbc4934
|
@ -1,6 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
setup_eth()
|
setup_eth()
|
||||||
{
|
{
|
||||||
|
for part in $(nvram get unused_ifnames); do
|
||||||
|
[ "$part" = "$INTERFACE" ] && return 0
|
||||||
|
done
|
||||||
[ -f /proc/net/wl0 ] && {
|
[ -f /proc/net/wl0 ] && {
|
||||||
lsmod | grep wlcompat >&- || insmod wlcompat
|
lsmod | grep wlcompat >&- || insmod wlcompat
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ END {
|
||||||
# WAP54G
|
# WAP54G
|
||||||
if ((nvram["boardnum"] == "2") || \
|
if ((nvram["boardnum"] == "2") || \
|
||||||
(nvram["boardnum"] == "1024")) {
|
(nvram["boardnum"] == "1024")) {
|
||||||
c["lan_ifnames"]="eth0 eth1"
|
c["lan_ifnames"]="eth1 eth2"
|
||||||
c["wan_ifname"]=""
|
c["wan_ifname"]=""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,6 +78,7 @@ END {
|
||||||
print "# lan_gateway=\"192.168.1.1\""
|
print "# lan_gateway=\"192.168.1.1\""
|
||||||
|
|
||||||
print ""
|
print ""
|
||||||
|
p("unused_ifnames")
|
||||||
print ""
|
print ""
|
||||||
|
|
||||||
print "#### WAN configuration"
|
print "#### WAN configuration"
|
||||||
|
|
Loading…
Reference in New Issue