Skip to content

Instantly share code, notes, and snippets.

@TGion
Last active June 12, 2023 15:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Check if Wireguard to Fritz!Box is active and set rclone server accordingly
#!/bin/sh
# Check if Wireguard to Fritz!Box is active
if ping -c 1 fritzbox.local > /dev/null
then export RCLONE_SERVER=fritz.wireguard # Access via Wireguard
else export RCLONE_SERVER=fritz.extern # Access via FTP/S externaly
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment