Foomatic-Paket.
Nochmal das DSL Script ueberarbeitet und nen kleinen Daemon geschrieben.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@815 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2007-08-23 19:52:52 +00:00
parent d36e62412d
commit 905fbf3e06
15 changed files with 5309 additions and 676 deletions

View File

@@ -25,6 +25,9 @@ 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 {
@@ -41,8 +44,6 @@ 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);