summaryrefslogtreecommitdiff
path: root/package/utils/admswconfig/patches/001-matrix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/utils/admswconfig/patches/001-matrix.patch')
-rw-r--r--package/utils/admswconfig/patches/001-matrix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/utils/admswconfig/patches/001-matrix.patch b/package/utils/admswconfig/patches/001-matrix.patch
new file mode 100644
index 0000000000..e50d515757
--- /dev/null
+++ b/package/utils/admswconfig/patches/001-matrix.patch
@@ -0,0 +1,15 @@
+--- 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);