From b327ffddd6ea46ca7645603558872c9ffce1fddd Mon Sep 17 00:00:00 2001 From: xopenwrt Date: Mon, 29 Jun 2026 21:33:49 +0800 Subject: [PATCH] fix autoupdate config target --- AI_CHANGELOG_AUTOUPDATE_CONFIG_TARGET.md | 11 +++++++++++ Scripts/AutoBuild_Function.sh | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 AI_CHANGELOG_AUTOUPDATE_CONFIG_TARGET.md diff --git a/AI_CHANGELOG_AUTOUPDATE_CONFIG_TARGET.md b/AI_CHANGELOG_AUTOUPDATE_CONFIG_TARGET.md new file mode 100644 index 0000000..f2ef9c3 --- /dev/null +++ b/AI_CHANGELOG_AUTOUPDATE_CONFIG_TARGET.md @@ -0,0 +1,11 @@ +# AI Modification Log: Autoupdate Config Target + +Date: 2026-06-29 + +## Change + +- Updated `Scripts/AutoBuild_Function.sh` so `CONFIG_PACKAGE_luci-app-autoupdate=y` is appended to `${CONFIG_TEMP}`. + +## Reason + +`Firmware_Diy_Main` runs after changing into the OpenWrt worktree. Appending to `${CONFIG_FILE}` can create or edit a file named after the config profile inside `openwrt`; `${CONFIG_TEMP}` points to the active `.config` generated for the build. diff --git a/Scripts/AutoBuild_Function.sh b/Scripts/AutoBuild_Function.sh index 1a51dd4..3db8557 100755 --- a/Scripts/AutoBuild_Function.sh +++ b/Scripts/AutoBuild_Function.sh @@ -130,7 +130,7 @@ Firmware_Diy_Main() { if [[ ${AutoBuild_Features} == true ]] then AddPackage git other AutoBuild-Packages xopenwrt master - echo -e "\nCONFIG_PACKAGE_luci-app-autoupdate=y" >> ${CONFIG_FILE} + echo -e "\nCONFIG_PACKAGE_luci-app-autoupdate=y" >> ${CONFIG_TEMP} for i in ${GITHUB_ENV} $(PKG_Finder d package AutoBuild-Packages)/autoupdate/files/etc/autoupdate/default do cat >> ${i} <