mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-04 11:01:27 +02:00
BETA 1!
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user