mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update luci-mod-admin-full to latest version
This commit is contained in:
parent
b108aa9789
commit
027d882f4d
20 changed files with 1589 additions and 169 deletions
0
luci-mod-admin-full/root/etc/init.d/macvlan
Executable file → Normal file
0
luci-mod-admin-full/root/etc/init.d/macvlan
Executable file → Normal file
22
luci-mod-admin-full/root/etc/uci-defaults/50_luci-mod-admin-full
Executable file
22
luci-mod-admin-full/root/etc/uci-defaults/50_luci-mod-admin-full
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/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='${host:-openwrt.org}'
|
||||
set luci.diag.ping='${host:-openwrt.org}'
|
||||
set luci.diag.route='${host:-openwrt.org}'
|
||||
commit luci
|
||||
EOF
|
||||
fi
|
||||
|
||||
exit 0
|
0
luci-mod-admin-full/root/etc/uci-defaults/51_macvlan
Executable file → Normal file
0
luci-mod-admin-full/root/etc/uci-defaults/51_macvlan
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue