fi
}
+#------------------------------------------------------------------------------
+restore_normal_conf() {
+
+ info "Restoring normal ${CYAN}/etc/resolv.conf${NORMAL} by ${CYAN}${RESOLV_CONF_NON_DPX}${NORMAL} ..."
+
+ CP -p "${RESOLV_CONF_NON_DPX}" /etc/resolv.conf
+
+}
+
+#------------------------------------------------------------------------------
+start_vpn() {
+
+ trap restore_normal_conf INT TERM EXIT ABRT
+
+ info "Enabling special ${CYAN}/etc/resolv.conf${NORMAL} by ${CYAN}${RESOLV_CONF_DPX}${NORMAL} ..."
+ CP -p "${RESOLV_CONF_DPX}" /etc/resolv.conf
+
+ local cmd="openfortivpn --no-dns --pppd-no-peerdns"
+ debug "Executing: ${cmd}"
+ eval ${cmd}
+
+}
+
#------------------------------------------------------------------------------
main() {
umask 0022
check_preferences
+ start_vpn
}
main "$@"