sqm-scripts: clean up interface selection for hotplugging

The initial conversion to restart sqm on interfaces it is configured
for in case of (transient) dis- and reappearance was half finished.
These changes clean up the handling of exlicitly passed interfaces
in run.sh: no second argument defaults to all configured interfaces
the alternative is an individual interface name passed as 2nd
argument to run.sh. The first argument either is start or stop.
No argument at all will behave as if start was passed.
Survives light testing...

Signed-off-by: Sebastian Moeller <moeller0@gmx.de>
This commit is contained in:
Sebastian Moeller
2015-03-25 10:38:11 +01:00
committed by Toke Høiland-Jørgensen
parent 6604f9ede0
commit 74e3c57fe0
3 changed files with 25 additions and 15 deletions
@@ -1,3 +1,3 @@
#!/bin/sh
[ "$ACTION" = ifup ] && /usr/lib/sqm/run.sh interface ${DEVICE}
[ "$ACTION" = ifup ] && /usr/lib/sqm/run.sh start ${DEVICE}