优化调整
This commit is contained in:
parent
c030d38cf5
commit
acd04d2bc8
|
@ -3,7 +3,7 @@
|
|||
# AutoBuild_Tools for Openwrt
|
||||
# Dependences: bash wget curl block-mount e2fsprogs smartmontools
|
||||
|
||||
Version=V1.8.7
|
||||
Version=V1.8.8
|
||||
|
||||
ECHO() {
|
||||
case $1 in
|
||||
|
@ -130,6 +130,7 @@ ${White}q. 退出
|
|||
cp -a /rom/etc/openwrt_release /etc
|
||||
cp -a /rom/etc/autoupdate/default /etc/autoupdate
|
||||
cp -a /rom/bin/autoupdate ${AutoUpdate_File}
|
||||
chmod +x ${AutoUpdate_File}
|
||||
cp -a /rom/bin/tools ${Tools_File}
|
||||
cp -a /rom/etc/config/autoupdate /etc/config
|
||||
ECHO y "\n固件环境修复完成!"
|
||||
|
|
|
@ -128,7 +128,7 @@ Firmware_Diy_Main() {
|
|||
if [[ ${AutoBuild_Features} == true ]]
|
||||
then
|
||||
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
|
||||
cat >> ${i} <<EOF
|
||||
Author=${Author}
|
||||
|
@ -144,7 +144,7 @@ OP_BRANCH=${OP_BRANCH}
|
|||
|
||||
EOF
|
||||
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/profile ${BASE_FILES}/etc
|
||||
Copy ${CustomFiles}/Depends/base-files-essential ${BASE_FILES}/lib/upgrade/keep.d
|
||||
|
|
Loading…
Reference in New Issue