sqm-scripts: clean up interface selection for hotplugging
authorSebastian Moeller <moeller0@gmx.de>
Fri, 20 Mar 2015 21:47:45 +0000 (22:47 +0100)
committerToke Høiland-Jørgensen <toke@toke.dk>
Wed, 25 Mar 2015 09:38:11 +0000 (10:38 +0100)
commit74e3c57fe0a3a88aedec6b51f8eab007b8894f82
tree2c79c28e6f75cda75122818285be3d40478cbde0
parent6604f9ede0d1cdab3e750de98a756be01ebd97c2
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>
net/sqm-scripts/files/etc/hotplug.d/iface/11-sqm
net/sqm-scripts/files/etc/init.d/sqm
net/sqm-scripts/files/usr/lib/sqm/run.sh