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:35:58 +01:00
committed by Toke Høiland-Jørgensen
parent 1561003a70
commit d5a203f1eb
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}