diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-08-12 12:10:30 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-08-12 12:10:30 +0000 |
commit | 207864d39df9ee6df51b55b0bd18d7c2cb75dc0c (patch) | |
tree | 5db587f35f38f8786af41401bb349ac64a71df10 /package | |
parent | 0860346ff09bc4310ff9272578d1941a0abf01e4 (diff) | |
download | mtk-20170518-207864d39df9ee6df51b55b0bd18d7c2cb75dc0c.zip mtk-20170518-207864d39df9ee6df51b55b0bd18d7c2cb75dc0c.tar.gz mtk-20170518-207864d39df9ee6df51b55b0bd18d7c2cb75dc0c.tar.bz2 |
Add the matrix fix from #2127
SVN-Revision: 8405
Diffstat (limited to 'package')
-rw-r--r-- | package/admswconfig/patches/001-matrix.patch | 15 |
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 0000000..5f3b5b1 --- /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); |