Skip to content

Instantly share code, notes, and snippets.

@TGion
Last active June 12, 2023 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TGion/f3b7b429e1c5f52585c4cd7d723477a7 to your computer and use it in GitHub Desktop.
Save TGion/f3b7b429e1c5f52585c4cd7d723477a7 to your computer and use it in GitHub Desktop.
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