Last active
June 12, 2023 15:08
-
-
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
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 | |
# 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