openconnect: disabled the resolving code from ppp in netifd script
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 26 Aug 2015 20:59:29 +0000 (22:59 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 26 Aug 2015 20:59:31 +0000 (22:59 +0200)
That code was causing netifd disabling openconnect with no way
to restart it.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
net/openconnect/Makefile
net/openconnect/files/openconnect.sh

index d0547f92b48b7cdcd093175df52e151ff68e4f35..33f107861f484b6e847cdd03e598c3a27bfbf1b3 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=openconnect
 PKG_VERSION:=7.06
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_USE_MIPS16:=0
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
index 0152dfefd468bb5d9a1dcfd65732b74ab94bd69b..ecdd66a5b2a4dcd323af9becfed4f632dddb0a96 100755 (executable)
@@ -29,17 +29,17 @@ proto_openconnect_setup() {
        ifname="vpn-$config"
 
        logger -t openconnect "initializing..."
-       serv_addr=
-       for ip in $(resolveip -t 10 "$server"); do
-               ( proto_add_host_dependency "$interface" "$ip" "$ifname" )
-               serv_addr=1
-       done
-       [ -n "$serv_addr" ] || {
-               logger -t openconnect "Could not resolve server address: '$server'"
-               sleep 60
-               proto_setup_failed "$config"
-               exit 1
-       }
+#      serv_addr=
+#      for ip in $(resolveip -t 10 "$server"); do
+#              ( proto_add_host_dependency "$interface" "$ip" "$ifname" )
+#              serv_addr=1
+#      done
+#      [ -n "$serv_addr" ] || {
+#              logger -t openconnect "Could not resolve server address: '$server'"
+#              sleep 5
+#              proto_setup_failed "$config"
+#              exit 1
+#      }
 
        [ -n "$port" ] && port=":$port"