It uses for this the mandatory files '${GREEN}${RESOLV_CONF_DPX}${NORMAL}' and '${GREEN}${RESOLV_CONF_NON_DPX}${NORMAL}'."
+ You must be root to execute this script.
+
EOF
)
}
+#------------------------------------------------------------------------------
+check_preferences() {
+
+ info "Checking preferences ..."
+ local all_ok="y"
+
+ debug "Checking for openfortivpn ..."
+ if type -p openfortivpn >/dev/null ; then
+ debug "Found openfortivpn in '$( type -p openfortivpn )'."
+ else
+ all_ok="n"
+ error "Did not found openfortivpn. Maybe not installed?"
+ fi
+
+ if [[ "${all_ok}" != "y" ]] ; then
+ exit 5
+ fi
+}
+
#------------------------------------------------------------------------------
main() {
get_options "$@"
umask 0022
+ check_preferences
}
main "$@"
--- /dev/null
+search pixelpark.net pixelpark.com pixelpark.de brehm-online.com uhu-banane.net pp-dns.com
+nameserver 77.74.232.24
+nameserver 77.74.232.25
+nameserver 93.188.104.82
+options edns0 timeout:1 attempts:2 use-vc