mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-20 08:05:29 +08:00
13 lines
366 B
Plaintext
13 lines
366 B
Plaintext
![]() |
#!/bin/sh
|
||
|
. /lib/functions.sh
|
||
|
if [ "$ACTION" != "ifup" ]; then
|
||
|
exit
|
||
|
fi
|
||
|
config_load network
|
||
|
config_get tunnelid $INTERFACE tunnelid
|
||
|
config_get username $INTERFACE username
|
||
|
config_get password $INTERFACE password
|
||
|
if [ "$tunnelid" != "" ]; then
|
||
|
wget -O - https://$username:$password@ipv4.tunnelbroker.net/nic/update?hostname=$tunnelid --no-check-certificate
|
||
|
fi
|