mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 09:40:18 +04:00
mwan3: refine link selection
- globals src_ip to none - ip route back to source - add mwan3rtmon - update version to 2.7 Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
This commit is contained in:
17
net/mwan3/files/etc/hotplug.d/iface/16-mwan3
Normal file
17
net/mwan3/files/etc/hotplug.d/iface/16-mwan3
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /lib/functions.sh
|
||||
. /lib/functions/network.sh
|
||||
. /lib/mwan3/mwan3.sh
|
||||
|
||||
config_load mwan3
|
||||
config_get_bool enabled globals 'enabled' '0'
|
||||
[ ${enabled} -gt 0 ] || exit 0
|
||||
|
||||
if [ "$ACTION" == "ifup" ]; then
|
||||
mwan3_lock
|
||||
mwan3_rtmon
|
||||
mwan3_unlock
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user