Skip to content

Commit d2d0b76

Browse files
zxlhhycccpymumu
authored andcommitted
Fix Selecting Automatic Update to automatically add scheduled tasks when smartdns is not started.
1 parent f51f4ac commit d2d0b76

File tree

1 file changed

+1
-1
lines changed
  • package/openwrt/files/etc/init.d

1 file changed

+1
-1
lines changed

package/openwrt/files/etc/init.d/smartdns

+1-1
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ load_service()
735735
[ -z "$response_mode" ] || conf_append "response-mode" "$response_mode"
736736

737737
config_get_bool enable_auto_update "$section" "enable_auto_update" "0"
738-
[ "$enable_auto_update" = "1" ] && enable_auto_update || disable_auto_update
738+
[ "$enabled" = "1" -a "$enable_auto_update" = "1" ] && enable_auto_update || disable_auto_update
739739

740740
config_get_bool bind_device "$section" "bind_device" "0"
741741
config_get bind_device_name "$section" "bind_device_name" "${lan_device}"

0 commit comments

Comments
 (0)