mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 19:11:51 +00:00
22 lines
455 B
Bash
Executable file
22 lines
455 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ "$(uci -q get luci.diag)" != "internal" ]; then
|
|
host=""
|
|
|
|
if [ -s /etc/os-release ]; then
|
|
. /etc/os-release
|
|
host="${HOME_URL:-${BUG_URL:-$LEDE_DEVICE_MANUFACTURER_URL}}"
|
|
host="${host#*://}"
|
|
host="${host%%/*}"
|
|
fi
|
|
|
|
uci -q batch <<-EOF >/dev/null
|
|
set luci.diag=internal
|
|
set luci.diag.dns='openmptcprouter.com'
|
|
set luci.diag.ping='openmptcprouter.com'
|
|
set luci.diag.route='openmptcprouter.com'
|
|
commit luci
|
|
EOF
|
|
fi
|
|
|
|
exit 0
|