mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
fwupdate: minor extract improvement
This commit is contained in:
parent
c92a8727ff
commit
cc799aa8ce
@ -350,17 +350,17 @@ function run_pre_upgrade() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function do_extract() {
|
function do_extract() {
|
||||||
echo "extracting..."
|
|
||||||
|
|
||||||
trap cleanup_on_exit EXIT
|
|
||||||
|
|
||||||
rm -f ${FW_FILE_EXTR}
|
|
||||||
rm -f ${BOOT_READY_FILE}
|
|
||||||
|
|
||||||
if ! [[ -f ${FW_FILE_GZ} || -f ${FW_FILE_XZ} ]]; then
|
if ! [[ -f ${FW_FILE_GZ} || -f ${FW_FILE_XZ} ]]; then
|
||||||
echo "firmware file not downloaded" 1>&2
|
echo "firmware file not downloaded" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm -f ${FW_FILE_EXTR}
|
||||||
|
rm -f ${BOOT_READY_FILE}
|
||||||
|
|
||||||
|
echo "extracting..."
|
||||||
|
|
||||||
|
trap cleanup_on_exit EXIT
|
||||||
|
|
||||||
format="gz"
|
format="gz"
|
||||||
if [[ -f ${FW_FILE_XZ} ]]; then
|
if [[ -f ${FW_FILE_XZ} ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user