git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.
This gist will no longer update, instead please go to https://github.com/lifehome/systemd-cfddns for more updated versions.
cfupdater
files to /usr/local/bin
-v4
to cfupdater
in the following systemd service unit.# attempt 6, success | |
# relies on Magisk auto start script | |
# pause script to give wireguard time to autostart | |
bullhead:/ # cat /data/adb/service.d/prep_gateway.sh | |
#!/system/bin/sh | |
sleep 2m | |
su -c 'iptables -F tetherctrl_FORWARD' | |
su -c 'sysctl -w net.ipv4.ip_forward=1' | |
su -c 'iptables -A FORWARD -i tun0 -j ACCEPT' | |
su -c 'iptables -t nat -A POSTROUTING -o rmnet_data0 -j MASQUERADE' |