diff options
author | Travis Kemen <thepeople@openwrt.org> | 2008-03-20 20:11:21 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2008-03-20 20:11:21 +0000 |
commit | e1ea7361dfc6fda43828d43dbcd0aa5ae0d89032 (patch) | |
tree | 4a7e0a668b82faddc2e1601d9bb5326eeab874e9 /package | |
parent | 585997f8d2cb0c080a9f9d6f158dcefe55f9ad12 (diff) | |
download | mtk-20170518-e1ea7361dfc6fda43828d43dbcd0aa5ae0d89032.zip mtk-20170518-e1ea7361dfc6fda43828d43dbcd0aa5ae0d89032.tar.gz mtk-20170518-e1ea7361dfc6fda43828d43dbcd0aa5ae0d89032.tar.bz2 |
fix a bug causing the init script to fail and incorrect number of lan ports
SVN-Revision: 10635
Diffstat (limited to 'package')
-rw-r--r-- | package/admswconfig/files/admswconfig | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/package/admswconfig/files/admswconfig b/package/admswconfig/files/admswconfig index d3a0565..7231030 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" |