mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 03:01:55 +02:00
fix a bug causing the init script to fail and incorrect number of lan ports
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10635 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6830e7b178
commit
eefc23ca59
@ -13,13 +13,9 @@ start() {
|
|||||||
case "$board_name" in
|
case "$board_name" in
|
||||||
"Compex WP54"*)
|
"Compex WP54"*)
|
||||||
board="Compex WP54";;
|
board="Compex WP54";;
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "$board" |awk '
|
echo "$board" |awk '
|
||||||
board=$1
|
|
||||||
|
|
||||||
function p(cfgname, name) {
|
function p(cfgname, name) {
|
||||||
if (c[name] != "") print " option " cfgname " \"" c[name] "\""
|
if (c[name] != "") print " option " cfgname " \"" c[name] "\""
|
||||||
}
|
}
|
||||||
@ -28,11 +24,11 @@ start() {
|
|||||||
FS="="
|
FS="="
|
||||||
c["lan_ifname"]="eth0"
|
c["lan_ifname"]="eth0"
|
||||||
c["wan_ifname"]="eth1"
|
c["wan_ifname"]="eth1"
|
||||||
c["eth0ports"]="1 2 3 4 5"
|
c["eth0ports"]="1 2 3 4"
|
||||||
c["eth1ports"]="0"
|
c["eth1ports"]="0"
|
||||||
}
|
}
|
||||||
|
|
||||||
END {
|
END {
|
||||||
|
board=$1
|
||||||
if (board == "Compex WP54") {
|
if (board == "Compex WP54") {
|
||||||
c["eth0ports"]="0"
|
c["eth0ports"]="0"
|
||||||
c["eth1ports"]="1"
|
c["eth1ports"]="1"
|
||||||
|
Loading…
Reference in New Issue
Block a user