This commit is contained in:
xopenwrt
2022-11-08 23:00:13 +08:00
committed by GitHub
parent 4dc8509915
commit 89d8670227
6 changed files with 267 additions and 164 deletions
+4 -3
View File
@@ -266,6 +266,7 @@ EOF
Firmware_Diy_End() {
ECHO "[Firmware_Diy_End] Starting ..."
ECHO "[$(date "+%H:%M:%S")] Actions Avaliable: $(df -h | grep "/dev/root" | awk '{printf $4}')"
cd ${WORK}
MKDIR ${WORK}/bin/Firmware
Fw_Path="${WORK}/bin/targets/${TARGET_BOARD}/${TARGET_SUBTARGET}"
@@ -292,7 +293,7 @@ Firmware_Diy_End() {
if [[ $(ls) =~ 'AutoBuild-' ]]
then
cd -
cp -a ${Fw_Path}/AutoBuild-* bin/Firmware
mv -f ${Fw_Path}/AutoBuild-* bin/Firmware
fi
ECHO "[$(date "+%H:%M:%S")] Actions Avaliable: $(df -h | grep "/dev/root" | awk '{printf $4}')"
ECHO "[Firmware_Diy_End] Done"
@@ -320,8 +321,8 @@ Process_Fw_Core() {
Fw=${Fw/FORMAT/${Fw_Format}}
if [[ -f $1 ]]
then
ECHO "Copying [$1] to [${Fw}] ..."
cp -a $1 ${Fw}
ECHO "Moving [$1] to [${Fw}] ..."
mv -f $1 ${Fw}
else
ECHO "Failed to copy [${Fw}] ..."
fi