1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-16 17:59:41 +02:00
openwrt-xburst/package/admswconfig/patches/001-matrix.patch
juhosg 04e305d18e package/admswconfig: refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20450 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-26 14:27:16 +00:00

16 lines
396 B
Diff

--- a/admswconfig.c
+++ b/admswconfig.c
@@ -111,9 +111,9 @@ int main(int argc, char **argv)
}
} 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);