summaryrefslogtreecommitdiffstats
path: root/package/admswconfig/patches/001-matrix.patch
blob: 5f3b5b18837d6e8e02f192653a2c9f62c7a3a7bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- admswconfig-0.1.orig/admswconfig.c	2007-05-30 12:55:35.000000000 +0200
+++ admswconfig-0.1/admswconfig.c	2007-07-24 19:22:14.000000000 +0200
@@ -111,9 +111,9 @@
 		}
 	} else {
 		/* display matrix */
-		printf("ethX\tport0\tport1\tport2\tport3\tport4");
-		if (info.ports == 6)
-			printf("\tport5");
+		printf("ethX");
+		for (i = 0; i < info.ports; i++)
+			printf("\tport%d", i);
 		printf("\tCPU\n");
 		for (i = 0; i < info.ports; i++) {
 			printf("%d", i);