]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/misc-progs/qosctrl.c
Fixes:
[people/pmueller/ipfire-2.x.git] / src / misc-progs / qosctrl.c
index ee6450206e4d25d50675e97d035a8871d0b3ce4f..ac9fd37504e7ec2c778b80c8e666552ce75111e7 100644 (file)
@@ -22,7 +22,7 @@ int main(int argc, char *argv[]) {
                exit(1);
 
        if (argc < 2) {
-               fprintf(stderr, "\nNo argument given.\n\nqosctrl (start|clear|status)\n\n");
+               fprintf(stderr, "\nNo argument given.\n\nqosctrl (start|stop|restart|status)\n\n");
                exit(1);
        }
 
@@ -38,12 +38,14 @@ int main(int argc, char *argv[]) {
                        {
                                safe_system("/var/ipfire/qos/bin/qos.sh start");
                        }       
-               } else if (strcmp(argv[1], "clear") == 0) {
+               } else if (strcmp(argv[1], "stop") == 0) {
                        safe_system("/var/ipfire/qos/bin/qos.sh clear");
                } else if (strcmp(argv[1], "status") == 0) {
                        safe_system("/var/ipfire/qos/bin/qos.sh status");
+               } else if (strcmp(argv[1], "restart") == 0) {
+                       safe_system("/var/ipfire/qos/bin/qos.sh restart");
                } else {
-                       fprintf(stderr, "\nBad argument given.\n\nqosctrl (start|clear|status)\n\n");
+                       fprintf(stderr, "\nBad argument given.\n\nqosctrl (start|stop|restart|status)\n\n");
                        exit(1);
                }