Created
February 3, 2022 14:42
-
-
Save fumiyas/ac30db5a04f3cc65a5bd03f6c13eef22 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /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