mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-23 14:07:24 +00:00
Make running upgrade-run.sh more convenient for users who use overlay image
This commit is contained in:
parent
ea676b367a
commit
39f2a66203
@ -4,7 +4,19 @@ if df / | grep -q overlayfs; then
|
||||
echo "Unable to upgrade because rootfs is overlay"
|
||||
echo "Please disable rootfs overlay by setting ENABLE_OVERLAY_FOR_ROOTFS=\"false\" in wz_mini.conf and reboot first"
|
||||
echo "You can change it back after upgrade is finished"
|
||||
read -r -p "Do you want to disable overlay and reboot now? [y/N]" response
|
||||
case "$response" in
|
||||
[yY][eE][sS]|[yY])
|
||||
sed -i 's/ENABLE_OVERLAY_FOR_ROOTFS=\"true\"/ENABLE_OVERLAY_FOR_ROOTFS=\"false\"/g' /opt/wz_mini/wz_mini.conf
|
||||
echo "You can run upgrade-run.sh to start upgrade after the camera reboots"
|
||||
reboot
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "Aborting upgrade"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ -L /dev/fd ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user