mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
sync (#497)
This commit is contained in:
commit
255d7ee3a7
2 changed files with 11 additions and 5 deletions
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
_log "Can't find dnsmasq, restart it..."
|
if [ "$(pgrep -f dnsmasq)" = "" ]; then
|
||||||
/etc/init.d/dnsmasq restart 2>&1 >/dev/null
|
_log "Can't find dnsmasq, restart it..."
|
||||||
sleep 5
|
/etc/init.d/dnsmasq restart 2>&1 >/dev/null
|
||||||
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue