aboutsummaryrefslogtreecommitdiffstats
path: root/package/admswconfig/patches
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-08-12 12:10:30 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-08-12 12:10:30 +0000
commit4b73bf46ff312fd07c8b9012ca49e95afdfe38f7 (patch)
tree83d9f926b15ed45132e4d79e56b6908ab6128752 /package/admswconfig/patches
parent95b120dbaa32346dc15c4ef387009727200b8d9b (diff)
downloadupstream-4b73bf46ff312fd07c8b9012ca49e95afdfe38f7.tar.gz
upstream-4b73bf46ff312fd07c8b9012ca49e95afdfe38f7.tar.bz2
upstream-4b73bf46ff312fd07c8b9012ca49e95afdfe38f7.zip
Add the matrix fix from #2127
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8405 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/admswconfig/patches')
-rw-r--r--package/admswconfig/patches/001-matrix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/admswconfig/patches/001-matrix.patch b/package/admswconfig/patches/001-matrix.patch
new file mode 100644
index 0000000000..5f3b5b1883
--- /dev/null
+++ b/package/admswconfig/patches/001-matrix.patch
@@ -0,0 +1,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);