优化调整

This commit is contained in:
Hyy2001X 2022-05-07 13:32:10 +08:00
parent c030d38cf5
commit acd04d2bc8
2 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@
# AutoBuild_Tools for Openwrt # AutoBuild_Tools for Openwrt
# Dependences: bash wget curl block-mount e2fsprogs smartmontools # Dependences: bash wget curl block-mount e2fsprogs smartmontools
Version=V1.8.7 Version=V1.8.8
ECHO() { ECHO() {
case $1 in case $1 in
@ -130,6 +130,7 @@ ${White}q. 退出
cp -a /rom/etc/openwrt_release /etc cp -a /rom/etc/openwrt_release /etc
cp -a /rom/etc/autoupdate/default /etc/autoupdate cp -a /rom/etc/autoupdate/default /etc/autoupdate
cp -a /rom/bin/autoupdate ${AutoUpdate_File} cp -a /rom/bin/autoupdate ${AutoUpdate_File}
chmod +x ${AutoUpdate_File}
cp -a /rom/bin/tools ${Tools_File} cp -a /rom/bin/tools ${Tools_File}
cp -a /rom/etc/config/autoupdate /etc/config cp -a /rom/etc/config/autoupdate /etc/config
ECHO y "\n固件环境修复完成!" ECHO y "\n固件环境修复完成!"

View File

@ -128,7 +128,7 @@ Firmware_Diy_Main() {
if [[ ${AutoBuild_Features} == true ]] if [[ ${AutoBuild_Features} == true ]]
then then
AddPackage git other AutoBuild-Packages Hyy2001X master AddPackage git other AutoBuild-Packages Hyy2001X master
for i in ${GITHUB_ENV} $(PKG_Finder d package luci-app-autoupdate)/root/etc/autoupdate/default for i in ${GITHUB_ENV} $(PKG_Finder d package AutoBuild-Packages)/autoupdate/files/etc/autoupdate/default
do do
cat >> ${i} <<EOF cat >> ${i} <<EOF
Author=${Author} Author=${Author}
@ -144,7 +144,7 @@ OP_BRANCH=${OP_BRANCH}
EOF EOF
done ; unset i done ; unset i
AutoUpdate_Version=$(awk -F '=' '/Version/{print $2}' $(PKG_Finder d package luci-app-autoupdate)/root/bin/autoupdate | awk 'NR==1') AutoUpdate_Version=$(awk -F '=' '/Version/{print $2}' $(PKG_Finder d package AutoBuild-Packages)/autoupdate/files/bin/autoupdate | awk 'NR==1')
Copy ${CustomFiles}/Depends/tools ${BASE_FILES}/bin Copy ${CustomFiles}/Depends/tools ${BASE_FILES}/bin
Copy ${CustomFiles}/Depends/profile ${BASE_FILES}/etc Copy ${CustomFiles}/Depends/profile ${BASE_FILES}/etc
Copy ${CustomFiles}/Depends/base-files-essential ${BASE_FILES}/lib/upgrade/keep.d Copy ${CustomFiles}/Depends/base-files-essential ${BASE_FILES}/lib/upgrade/keep.d