mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
net/mwan3: add mwan3.user hotplug script
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -f "/etc/mwan3.user" ] && {
|
||||
. /lib/functions.sh
|
||||
|
||||
config_load mwan3
|
||||
config_get enabled $INTERFACE enabled 0
|
||||
[ "${enabled}" = "1" ] || exit 0
|
||||
/bin/sh /etc/mwan3.user $ACTION $INTERFACE $DEVICE
|
||||
}
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user