projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
585997f
)
fix a bug causing the init script to fail and incorrect number of lan ports
author
Travis Kemen
<thepeople@openwrt.org>
Thu, 20 Mar 2008 20:11:21 +0000
(20:11 +0000)
committer
Travis Kemen
<thepeople@openwrt.org>
Thu, 20 Mar 2008 20:11:21 +0000
(20:11 +0000)
SVN-Revision: 10635
package/admswconfig/files/admswconfig
patch
|
blob
|
history
diff --git
a/package/admswconfig/files/admswconfig
b/package/admswconfig/files/admswconfig
index d3a0565569a181706bbfefcb94cecab0e87fc9cc..72310306501b3609086e9fd3a90ae43a935a1b9b 100644
(file)
--- 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"