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
# RouterOS dynamic DNS Update Script for deSEC | |
# ============================================ | |
# make global to preserve IP and IPv4 address across script executions | |
:global ipddns | |
:global ipv6ddns | |
:local ddnshost "myhost.example.com" | |
:local token "MY_TOKEN" | |
:local waninterfacev4 "V4_INTERFACE_NAME" # Interface to retrieve WAN IPv4 address from (i.e. pppoe-out1) |
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
# This script rewrites a list of files to remove extended attributes like | |
# com.apple.macl, which can cause Time Machine backups to fail. | |
# It preserves creation and modification dates using SetFile/GetFileInfo. | |
# | |
# Provide the list of files via stdin, e.g.: | |
# echo "/path/to/file" | ./rewrite_file_clean.sh | |
# or | |
# cat filelist.txt | ./rewrite_file_clean.sh | |
# | |
# Requires: Xcode Command Line Tools (for SetFile and GetFileInfo) |
OlderNewer