1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
suyuan 2024-06-08 00:35:48 +08:00 committed by GitHub
commit 255d7ee3a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 5 deletions

View file

@ -453,7 +453,7 @@ select,
.cbi-dropdown:not(.btn):not(.cbi-button), .cbi-dropdown:not(.btn):not(.cbi-button),
.uneditable-input { .uneditable-input {
display: inline-block; display: inline-block;
min-width: 215px; width: 280px;
height: 30px; height: 30px;
padding: 4px; padding: 4px;
font-size: 13px; font-size: 13px;

View file

@ -28,10 +28,16 @@ if [ -f /etc/init.d/glorytun-udp ] && [ "$(pgrep glorytun-udp)" = "" ] && [ "$(u
sleep 5 sleep 5
fi fi
if [ "$(pgrep -f dnsmasq)" = "" ] && [ -f /etc/init.d/dnsmasq ]; then if [ -f /etc/init.d/dnsmasq ]; then
if [ "$(pgrep -f dnsmasq)" = "" ]; then
_log "Can't find dnsmasq, restart it..." _log "Can't find dnsmasq, restart it..."
/etc/init.d/dnsmasq restart 2>&1 >/dev/null /etc/init.d/dnsmasq restart 2>&1 >/dev/null
sleep 5 sleep 5
elif [ "$(uci -q get openmptcprouter.settings.external_check)" != "0" ] && [ -n "$(dig +timeout=4 +tries=1 openmptcprouter.com | grep 'connection refused')" ]; then
_log "Can't resolve via dnsmasq, restart it..."
/etc/init.d/dnsmasq restart 2>&1 >/dev/null
sleep 5
fi
fi fi
if [ -f /etc/init.d/unbound ] && [ "$(uci -q get unbound.@unbound[0].enabled)" = "1" ]; then if [ -f /etc/init.d/unbound ] && [ "$(uci -q get unbound.@unbound[0].enabled)" = "1" ]; then
if [ "$(pgrep -f unbound)" = "" ]; then if [ "$(pgrep -f unbound)" = "" ]; then