Explorar el Código

Fix Selecting Automatic Update to automatically add scheduled tasks when smartdns is not started.

zxl hhyccc hace 7 meses
padre
commit
d2d0b767b8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      package/openwrt/files/etc/init.d/smartdns

+ 1 - 1
package/openwrt/files/etc/init.d/smartdns

@@ -735,7 +735,7 @@ load_service()
 	[ -z "$response_mode" ] || conf_append "response-mode" "$response_mode"
 
 	config_get_bool enable_auto_update "$section" "enable_auto_update" "0"
-	[ "$enable_auto_update" = "1" ] && enable_auto_update || disable_auto_update
+	[ "$enabled" = "1" -a "$enable_auto_update" = "1" ] && enable_auto_update || disable_auto_update
 
 	config_get_bool bind_device "$section" "bind_device" "0"
 	config_get bind_device_name "$section" "bind_device_name" "${lan_device}"