Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
--- /usr/share/vpnc-scripts/vpnc-script 2021-08-19 01:47:24.000000000 +0900
+++ /home/fumiyas/bin/vpnc-script 2022-02-03 18:01:06.473080699 +0900
@@ -147,7 +147,10 @@
RESOLVEDENABLED=0
fi
-if [ -r /etc/openwrt_release ] && [ -n "$OPENWRT_INTERFACE" ]; then
+if :; then
+ MODIFYRESOLVCONF=echo
+ RESTORERESOLVCONF=echo
+elif [ -r /etc/openwrt_release ] && [ -n "$OPENWRT_INTERFACE" ]; then
. /etc/functions.sh
include /lib/network
MODIFYRESOLVCONF=modify_resolvconf_openwrt
@@ -281,6 +284,7 @@
}
set_default_route() {
+ return
$IPROUTE route | grep '^default' | fix_ip_get_output > "$DEFAULT_ROUTE_FILE"
$IPROUTE route replace default dev "$TUNDEV"
$IPROUTE route flush cache 2>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment