Created
April 15, 2020 10:57
-
-
Save teslamint/54c53637f05d34101cf340c49d4488e5 to your computer and use it in GitHub Desktop.
[OpenWrt] Restart WireGuard(WGCF) interface if WAN is up
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
[ "ifup" = "$ACTION" ] && { | |
[ "wan" = "$DEVICE" ] && { | |
ifconfig wgcf down | |
ifconfig wgcf up | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment