]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
QoS-Improvements.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Mon, 11 Sep 2006 13:46:05 +0000 (13:46 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Mon, 11 Sep 2006 13:46:05 +0000 (13:46 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@269 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

doc/ChangeLog
html/cgi-bin/qos.cgi
src/misc-progs/qosctrl.c

index d71007fed6b69618ea8981855b677a9bc0401527..76aec76988b2d0299902ceb12dc370d5c9e24c2f 100644 (file)
@@ -1,3 +1,11 @@
+------------------------------------------------------------------------
+r268 | ms | 2006-09-10 21:52:20 +0200 (Sun, 10 Sep 2006) | 5 lines
+
+Geaendert:
+  * Squid auf neuesten Stand gebracht.
+  * QoS-Fortschritt.
+  * Kleines Script fuer Sprachdateiupdates.
+
 ------------------------------------------------------------------------
 r267 | ms | 2006-09-02 22:18:51 +0200 (Sat, 02 Sep 2006) | 4 lines
 
index 0b40b4930bbeaa59af9a5970e18dbbd8422d06f4..94e63b2c82a02e8577395e9b211ce72eb24c0002 100644 (file)
@@ -323,9 +323,9 @@ END
 
 if ($qossettings{'ACTION'} eq 'Start')
 {
-       system("sleep 1 && /usr/bin/perl /var/ipfire/qos/bin/makeqosscripts.pl > /var/ipfire/qos/bin/qos.sh &");
+       system("/usr/local/bin/qosctrl generate >/dev/null 2>&1");
        system("/bin/touch /var/ipfire/qos/enable");
-       system("sleep 2 && /usr/local/bin/qosctrl start >/dev/null 2>&1");
+       system("/usr/local/bin/qosctrl start >/dev/null 2>&1");
        system("logger -t ipfire 'QoS started'");
        $qossettings{'ENABLED'} = 'on';
        &General::writehash("${General::swroot}/qos/settings", \%qossettings);
@@ -343,8 +343,8 @@ elsif ($qossettings{'ACTION'} eq 'Neustart')
 {
        if ($qossettings{'ENABLED'} eq 'on'){
                system("/usr/local/bin/qosctrl stop >/dev/null 2>&1");
-               system("sleep 1 && /usr/bin/perl /var/ipfire/qos/bin/makeqosscripts.pl > /var/ipfire/qos/bin/qos.sh &");
-               system("sleep 5 && /usr/local/bin/qosctrl start >/dev/null 2>&1");
+               system("/usr/local/bin/qosctrl generate >/dev/null 2>&1");
+               system("/usr/local/bin/qosctrl start >/dev/null 2>&1");
                system("logger -t ipfire 'QoS restarted'");
        }
 }
index f5faaa7a080d84ddceb6a4353cb4f7bb134f8a4c..37cfab6405b8025996e819bb4ed41cd57a332497 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|stop|restart|status)\n\n");
+               fprintf(stderr, "\nNo argument given.\n\nqosctrl (start|stop|restart|status|generate)\n\n");
                exit(1);
        }
 
@@ -43,8 +43,10 @@ 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 2>/dev/null");
        } else {
-               fprintf(stderr, "\nBad argument given.\n\nqosctrl (start|stop|restart|status)\n\n");
+               fprintf(stderr, "\nBad argument given.\n\nqosctrl (start|stop|restart|status|generate)\n\n");
                exit(1);
        }