]> git.sur5r.net Git - gsconf/commitdiff
committing patch for more help text from Lars Lindholm (larlin)
authoradvielsack@gmail.com <advielsack@gmail.com@11042eb7-4a36-49e9-8ab2-01d26d512705>
Thu, 12 Jul 2012 18:09:06 +0000 (18:09 +0000)
committeradvielsack@gmail.com <advielsack@gmail.com@11042eb7-4a36-49e9-8ab2-01d26d512705>
Thu, 12 Jul 2012 18:09:06 +0000 (18:09 +0000)
git-svn-id: http://gsconf.googlecode.com/svn/trunk@8 11042eb7-4a36-49e9-8ab2-01d26d512705

gs105e.c
shell.c
shell_port.c
shell_sys.c
shell_vlan.c

index 5f3ed44e166844716d715d77489d9b48e7f2f377..f28c110b792f863ba0c36a7b2af05a5a930ad126 100644 (file)
--- a/gs105e.c
+++ b/gs105e.c
@@ -241,10 +241,10 @@ int gs105e__receive(void) {
         unsigned int slLen;
         
         
-        if (len > 0) 
-                hexDump(data, len);
+//        if (len > 0) 
+//                hexDump(data, len);
         if (len == -1) {
-                printf("Received No or Invalid Packet\n");
+//                printf("Received No or Invalid Packet\n");
                 return -1;
         }
         if (memcmp(&data[8], myMac, 6) | data[0] != 0x01 | (!(data[1] == 0x02 | data[1] == 0x04))) {
diff --git a/shell.c b/shell.c
index da91eb96aee2873730b9a4893567e1666be89bfa..744db98d8b726fdf4f098daca0a221a427e6e39e 100644 (file)
--- a/shell.c
+++ b/shell.c
@@ -220,6 +220,10 @@ int shell (void) {
                         shell_sys(argv, elem);
                 }
                 
+                if (strncmp(argv[0], "help", 4) == 0) {
+                        printf("Available commands: \n");
+                        printf("[discover|select|nodev|ip|vlan|port|sys] \n");
+                }
 
                 
                 
index d9400290b6afde6a028f8610eba95dc25b45054b..2dbf94e7c1ced3f9606c7315e949a0d13e9224fe 100644 (file)
@@ -5,7 +5,7 @@ void shell_port(char ** argv, int elem) {
         int n, i, m, o;
         
         if (elem == 1) {
-        
+                printf(" port [show|diag|mirror] \n");
                 return;
         }
         if (strncmp(argv[1], "show", 4) == 0) {
index c72b8f5505060487786765d6d857d1d458f24154..d563670c9cad2e04ffcc5b9f64ef2447bdbc4b78 100644 (file)
@@ -6,7 +6,7 @@ void shell_sys(char ** argv, int elem) {
         int n, i, m, o;
         
         if (elem == 1) {
-                printf("\n");
+                printf(" port [show|name|password|restart] \n");
                 return;
         }
         
index 85bb2763dce2008e89bd5d4537a292fbe5596403..adfa96941260e76337c6f7abe917311022b0399c 100644 (file)
@@ -5,7 +5,7 @@ void shell_vlan(char ** argv, int elem) {
         int n, m, o;
         
         if (elem == 1) {
-        
+                printf(" port [show|enable|show|add|del|assign|revoke] \n");
                 return;
         }