From e84509a53f6106dff232234d918bf7ea623b4e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=B5=E4=BA=8C?= <66155308+miaoermua@users.noreply.github.com> Date: Wed, 24 Jul 2024 18:56:01 +0800 Subject: [PATCH] fix --- cattools.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cattools.sh b/cattools.sh index 173c657..ebc9ec5 100644 --- a/cattools.sh +++ b/cattools.sh @@ -1079,7 +1079,12 @@ catwrt_opkg_list_installed() { echo "$package" >>"$BACKUP_FILE" fi done - echo "备份完成" + + if grep -Fxq "/etc/catwrt_opkg_list_installed" "/etc/sysupgrade.conf"; then + else + echo "$config_file" >> "$sysupgrade_conf" + fi + echo "备份完成,现在升级也不怕啦~" } restore_installed_packages() {