mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 05:49:53 +07:00
update: fix fullupgrade for "s" version
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
1d582d8e0c
commit
73a72774cd
@ -74,7 +74,11 @@ function upgradeLoader () {
|
|||||||
echo "Installing new Loader Image..."
|
echo "Installing new Loader Image..."
|
||||||
# Process complete update
|
# Process complete update
|
||||||
umount "${PART1_PATH}" "${PART2_PATH}" "${PART3_PATH}"
|
umount "${PART1_PATH}" "${PART2_PATH}" "${PART3_PATH}"
|
||||||
|
if [ -n "${ARCBRANCH}" ]; then
|
||||||
|
dd if="${TMP_PATH}/arc-${ARCBRANCH}.img" of=$(blkid | grep 'LABEL="ARC3"' | cut -d3 -f1) bs=1M conv=fsync
|
||||||
|
else
|
||||||
dd if="${TMP_PATH}/arc.img" of=$(blkid | grep 'LABEL="ARC3"' | cut -d3 -f1) bs=1M conv=fsync
|
dd if="${TMP_PATH}/arc.img" of=$(blkid | grep 'LABEL="ARC3"' | cut -d3 -f1) bs=1M conv=fsync
|
||||||
|
fi
|
||||||
# Ask for Boot
|
# Ask for Boot
|
||||||
rm -f "${TMP_PATH}/arc.img" >/dev/null
|
rm -f "${TMP_PATH}/arc.img" >/dev/null
|
||||||
echo "Upgrade done! -> Rebooting..."
|
echo "Upgrade done! -> Rebooting..."
|
||||||
|
Loading…
Reference in New Issue
Block a user