From d134b7ffbb9ddf194b12ca5c9c92b98d91c4c7e6 Mon Sep 17 00:00:00 2001 From: Aaron Goodman Date: Mon, 20 Jul 2020 10:42:13 -0400 Subject: [PATCH] openfortivpn: Only start autostart interfaces on hotplug event Signed-off-by: Aaron Goodman --- net/openfortivpn/files/14-openforticlient | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/openfortivpn/files/14-openforticlient b/net/openfortivpn/files/14-openforticlient index 336e05a9c..9cff9bd21 100644 --- a/net/openfortivpn/files/14-openforticlient +++ b/net/openfortivpn/files/14-openforticlient @@ -8,6 +8,8 @@ for i in $networks; do iface_success=$? [ $? -eq 0 ] && [ $INTERFACE == "$iface" ] && { logger -t "openfortivpnhotplug" "$ACTION on $INTERFACE to bring up $i" + load_on_boot=$(uci get network.${i}.auto 2>/dev/null) + [ -n "$load_on_boot" ] && [ "$load_on_boot" -eq 0 ] && continue json_load "$(ifstatus $i)" json_get_var autostart autostart [ "$autostart" -eq 0 ] && {