aboutsummaryrefslogtreecommitdiff
path: root/net/openfortivpn/files/openfortivpn.sh
diff options
context:
space:
mode:
authorRyan Shi <qweaszxcdfsh@gmail.com>2020-07-02 15:47:13 +0800
committerRyan Shi <qweaszxcdfsh@gmail.com>2020-07-02 15:47:13 +0800
commitf25db3dede155ece91170c8101523fe481f26032 (patch)
tree0f620da04b5f4a8a743cee018d927cfe65fb0b3a /net/openfortivpn/files/openfortivpn.sh
parent2b2f51c1c7f99e889e134eb88c5133332e10ffa0 (diff)
openfortivpn: Remove pingcheck and use l3_device instead
Signed-off-by: Ryan Shi <qweaszxcdfsh@gmail.com>
Diffstat (limited to 'net/openfortivpn/files/openfortivpn.sh')
-rwxr-xr-xnet/openfortivpn/files/openfortivpn.sh12
1 files changed, 1 insertions, 11 deletions
diff --git a/net/openfortivpn/files/openfortivpn.sh b/net/openfortivpn/files/openfortivpn.sh
index 292ffd4b2..64fd8ac99 100755
--- a/net/openfortivpn/files/openfortivpn.sh
+++ b/net/openfortivpn/files/openfortivpn.sh
@@ -36,7 +36,7 @@ proto_openfortivpn_setup() {
[ -n "$iface_name" ] && {
json_load "$(ifstatus $iface_name)"
- json_get_var iface_device_name device
+ json_get_var iface_device_name l3_device
json_get_var iface_device_up up
}
@@ -59,16 +59,6 @@ proto_openfortivpn_setup() {
exit 1
}
- [ -n $iface_name ] && {
- ping -I $iface_device_name -c 1 -w 10 $server_ip > /dev/null 2>&1 || {
- logger -t "openfortivpn" "$config: failed to ping $server_ip on $iface_device_name"
- sleep 10
- proto_notify_error "$config" "failed to ping $server_ip on $iface_device_name"
- proto_setup_failed "$config"
- exit 1
- }
- }
-
for ip in $(resolveip -t 10 "$server"); do
logger -t "openfortivpn" "$config: adding host dependency for $ip on $iface_name at $config"
proto_add_host_dependency "$config" "$ip" "$iface_name"