This file contains 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
#!/bin/sh | |
function install_wireguard () { | |
echo "Downloading Wireguard ($RELEASE)..." | |
FILENAME="wireguard-$BOARD-$RELEASE.deb" | |
DEB_URL="https://github.com/Lochnair/vyatta-wireguard/releases/download/$RELEASE/$FILENAME" | |
if (/usr/bin/curl -s -L -o /tmp/$FILENAME $DEB_URL); then | |
echo "Installing $FILENAME..." | |
dpkg -i /tmp/$FILENAME | |
rm -f /tmp/$FILENAME |
This file contains 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
#!/bin/bash -e | |
# vyatta-wireguard | |
# | |
# Usage: `./wireguard.sh [upgrade|uninstall]`. | |
# | |
# When called without arguments, the latest version will be fetched and installed. | |
# | |
# To automatically install the latest version of WireGuard after Firmware upgrades, | |
# this script should be placed in `/config/scripts/post-config.d/wireguard.sh`. |