- Open the Terminal Application
- Type in
sudo -i
and type in your Mac Administrator account password.sudo
gives you root level or administrator level privileges.
dsconfigad -show
#!/bin/ash | |
source /etc/openwrt_release | |
echo "$DISTRIB_ID $DISTRIB_RELEASE" | |
rm -f /tmp/releases.html | |
wget -q https://downloads.openwrt.org/releases/ -O /tmp/releases.html | |
LATEST_RELEASE=`grep -o 'href="[0-9.]*/"' /tmp/releases.html | tail -1 | cut -d'"' -f2 | cut -d'/' -f1` | |
rm -f /tmp/releases.html |
######## | |
# Name: yandex-ddns | |
# Author: v12 | |
# URL: https://gist.github.com/v12/8892066 | |
######## | |
### Settings section | |
# There is no way of getting token automatically via script, so you should get it manually: https://pddimp.yandex.ru/get_token.xml?domain_name=example.com |
sudo -i
and type in your Mac Administrator account password. sudo
gives you root level or administrator level privileges.dsconfigad -show
rsync (Everyone seems to like -z, but it is much slower for me)