aboutsummaryrefslogtreecommitdiffstats
path: root/package/admswconfig/files
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2008-03-20 20:11:21 +0000
committerTravis Kemen <thepeople@openwrt.org>2008-03-20 20:11:21 +0000
commit259096f86470ed5ec3eb1c43ad13c73ee9312c65 (patch)
tree4d52175a800701b9135537e92f3542eb3908c3d1 /package/admswconfig/files
parente5baf6bef849d2e590f9b11343892ad2468d44b5 (diff)
downloadupstream-259096f86470ed5ec3eb1c43ad13c73ee9312c65.tar.gz
upstream-259096f86470ed5ec3eb1c43ad13c73ee9312c65.tar.bz2
upstream-259096f86470ed5ec3eb1c43ad13c73ee9312c65.zip
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
Diffstat (limited to 'package/admswconfig/files')
-rw-r--r--package/admswconfig/files/admswconfig8
1 files changed, 2 insertions, 6 deletions
diff --git a/package/admswconfig/files/admswconfig b/package/admswconfig/files/admswconfig
index d3a0565569..7231030650 100644
--- a/package/admswconfig/files/admswconfig
+++ b/package/admswconfig/files/admswconfig
@@ -13,13 +13,9 @@ start() {
case "$board_name" in
"Compex WP54"*)
board="Compex WP54";;
- *)
- ;;
esac
echo "$board" |awk '
- board=$1
-
function p(cfgname, name) {
if (c[name] != "") print " option " cfgname " \"" c[name] "\""
}
@@ -28,11 +24,11 @@ start() {
FS="="
c["lan_ifname"]="eth0"
c["wan_ifname"]="eth1"
- c["eth0ports"]="1 2 3 4 5"
+ c["eth0ports"]="1 2 3 4"
c["eth1ports"]="0"
}
-
END {
+ board=$1
if (board == "Compex WP54") {
c["eth0ports"]="0"
c["eth1ports"]="1"