]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/misc-progs/qosctrl.c
removed custom background option for urlfilter option is no longer
[people/pmueller/ipfire-2.x.git] / src / misc-progs / qosctrl.c
index 1749ef81a2bff11576a1eec7ce7a38f7eed6839d..8a8f07ebc099eb5c17613bf4c89f1bfc5a8a1a06 100644 (file)
@@ -25,9 +25,6 @@ int main(int argc, char *argv[]) {
                exit(1);
        }
        
-       if (strcmp(argv[1], "generate") == 0)
-               safe_system("/usr/bin/perl /var/ipfire/qos/bin/makeqosscripts.pl > /var/ipfire/qos/bin/qos.sh");
-       
        if ((fd = open("/var/ipfire/qos/bin/qos.sh", O_RDONLY)) != -1) {
                close(fd);
        } else {
@@ -44,6 +41,8 @@ int main(int argc, char *argv[]) {
                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 if (strcmp(argv[1], "generate") == 0) {
+               safe_system("/usr/bin/perl /var/ipfire/qos/bin/makeqosscripts.pl > /var/ipfire/qos/bin/qos.sh");
        } else {
                fprintf(stderr, "\nBad argument given.\n\nqosctrl (start|stop|restart|status|generate)\n\n");
                exit(1);