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 | |
### Custom user script | |
### Called after internal WAN up/down action | |
### $1 - WAN action (up/down) | |
### $2 - WAN interface name (e.g. eth3 or ppp0) | |
### $3 - WAN IPv4 address | |
dyn_dns_token=$(grep -E 'username' /etc/inadyn.conf | awk '{print $2}') | |
/etc/storage/dynv6.sh yourDynDNS.dynv6.net $3 $dyn_dns_token |
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 -e | |
# based on https://gist.github.com/pulsar256/42313fcb2d3ae805805f | |
# adopted for padavan firmware | |
hostname=$1 | |
v4_address=$2 | |
token=$3 | |
v4_file=$HOME/.${hostname}.dynv6.addr4 |