Преглед изворни кода

fix a bug causing the init script to fail and incorrect number of lan ports

SVN-Revision: 10635
Travis Kemen пре 18 година
родитељ
комит
e1ea7361df
1 измењених фајлова са 2 додато и 6 уклоњено
  1. 2 6
      package/admswconfig/files/admswconfig

+ 2 - 6
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"