luci-app-mosdns: init.d: fix typo

This commit is contained in:
sbwml 2022-11-22 14:58:53 +08:00
parent 7a01738cf8
commit 88d1ea7c46

View File

@ -144,7 +144,7 @@ start_service() {
stop_service() { stop_service() {
pgrep -f /usr/bin/mosdns | xargs kill -9 >/dev/null 2>&1 pgrep -f /usr/bin/mosdns | xargs kill -9 >/dev/null 2>&1
config_load "mosdns" config_load "mosdns"
config_foreach get_config "config" config_foreach get_config "mosdns"
[ "$enabled" = "0" ] && [ -f "/etc/mosdns/redirect.lock" ] && restore_setting [ "$enabled" = "0" ] && [ -f "/etc/mosdns/redirect.lock" ] && restore_setting
reload_others reload_others
delcron delcron