mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update luci and theme
This commit is contained in:
parent
fe03553aae
commit
4d7962337f
165 changed files with 74180 additions and 13802 deletions
22
luci-mod-network/root/etc/uci-defaults/50_luci-mod-admin-full
Executable file
22
luci-mod-network/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='openmptcprouter.com'
|
||||
set luci.diag.ping='openmptcprouter.com'
|
||||
set luci.diag.route='openmptcprouter.com'
|
||||
commit luci
|
||||
EOF
|
||||
fi
|
||||
|
||||
exit 0
|
14
luci-mod-network/root/etc/uci-defaults/51_macvlan
Executable file
14
luci-mod-network/root/etc/uci-defaults/51_macvlan
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@macvlan[-1]
|
||||
add ucitrack macvlan
|
||||
set ucitrack.@macvlan[-1].init=macvlan
|
||||
commit ucitrack
|
||||
EOF
|
||||
if [ "$(uci -q get ucitrack.@network[-1].affects | grep macvlan)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
add_list ucitrack.@network[-1].affects=macvlan
|
||||
commit ucitrack
|
||||
EOF
|
||||
fi
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue