mirror of
https://github.com/novatiq/packages.git
synced 2026-07-30 07:13:07 +01:00
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:
committed by
Toke Høiland-Jørgensen
parent
1561003a70
commit
d5a203f1eb
@@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "$ACTION" = ifup ] && /usr/lib/sqm/run.sh interface ${DEVICE}
|
||||
[ "$ACTION" = ifup ] && /usr/lib/sqm/run.sh start ${DEVICE}
|
||||
|
||||
Reference in New Issue
Block a user