projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75efd85
)
openfortivpn: Only start autostart interfaces on hotplug event
author
Aaron Goodman
<aaronjg@stanford.edu>
Mon, 20 Jul 2020 14:42:13 +0000
(10:42 -0400)
committer
Aaron Goodman
<aaronjg@stanford.edu>
Wed, 22 Jul 2020 02:01:46 +0000
(22:01 -0400)
Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
net/openfortivpn/files/14-openforticlient
patch
|
blob
|
history
diff --git
a/net/openfortivpn/files/14-openforticlient
b/net/openfortivpn/files/14-openforticlient
index 336e05a9cfb106cf5f9cf8e356fa42c91745ee5e..9cff9bd21bc09d2c335b83b02e047720ba70afbf 100644
(file)
--- 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 ] && {