Milí majitelé routerů Turris,
toto fórum bylo 9. 12. 2016 zmrazeno a nahrazeno naším novým Turris fórem. Ještě chvíli bude dostupné k prohlížení, ale již zde není možné přispívat. Více informací naleznete v oznámení o uzavření fóra.
Dear Turris routers users,
this forum has been frozen on Dec 9th, 2016 and replaced by our new Turris forum. It will be read-only accessible for some time after. For more information, read the announcement about closing the forum.
ssh root@$(curl "https://raw.githubusercontent.com/jiri001meitner/public-ipv4-turris/master/ipv4.txt")
#!/bin/sh # change directory to local turris git repository cd /mnt/sdcard/public-ipv4-turris/ #current public ipv4 address ip addr show br-wan | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" | head -n 1 1> /mnt/sdcard/public-ipv4-turris/ipv4.txt || wget http://ipinfo.io/ip -qO - 1> /mnt/sdcard/public-ipv4-turris/ipv4.txt || curl ifconfig.co 1> /mnt/sdcard/public-ipv4-turris/ipv4.txt || curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//' 1> /mnt/sdcard/public-ipv4-turris/ipv4.txt #last run log date > /tmp/public.ipv4.log #remote upload ipv4 changes git add /mnt/sdcard/public-ipv4-turris/* 2>/dev/null git commit -m "$(date)" 2>/dev/null git ls-files --deleted | xargs git rm 2> /dev/null git push -u origin master 2>/dev/null || /usr/bin/git pull --no-edit exit 0
Powered by mwForum 2.29.3 © 1999-2013 Markus Wichitill