mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
[BOARD] add "dialog" box for RESIZE procedure (#36)
in firstboot script
This commit is contained in:
@@ -53,10 +53,12 @@ if test -r "${BASEDIR}/firstboot.custom.sh"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo " "
|
||||||
|
sleep 1
|
||||||
# resize the main partition if requested
|
# resize the main partition if requested
|
||||||
if test -e "${MOUNTDIR}/resize"; then
|
if ((test -e "${MOUNTDIR}/resize") && !(dialog --defaultno --yes-label NO --no-label YES --stdout --timeout 10 --title " Expand MAIN partition?" \
|
||||||
|
--colors --yesno "\n\n \ZuSelect an option & press START\Zn\n\n \ZbWARNING:\Zn\n After 10s auto-resize\n of FAT32 partition will begin." 12 60)); then
|
||||||
|
clear
|
||||||
echo "Going to resize the MAIN partition." | tee -a ${LOG}
|
echo "Going to resize the MAIN partition." | tee -a ${LOG}
|
||||||
echo "This can take A LONG TIME, so be patient." | tee -a ${LOG}
|
echo "This can take A LONG TIME, so be patient." | tee -a ${LOG}
|
||||||
umount /dev/mmcblk0p4 | tee -a ${LOG}
|
umount /dev/mmcblk0p4 | tee -a ${LOG}
|
||||||
|
|||||||
0
board/miyoo/boot/resize
Normal file
0
board/miyoo/boot/resize
Normal file
@@ -11,7 +11,8 @@ image bootfs.vfat {
|
|||||||
"boot/firstboot",
|
"boot/firstboot",
|
||||||
"boot/firstboot.custom.sh-OFF",
|
"boot/firstboot.custom.sh-OFF",
|
||||||
"boot/modules.custom.sh",
|
"boot/modules.custom.sh",
|
||||||
"boot/normalboot.custom.sh"
|
"boot/normalboot.custom.sh",
|
||||||
|
"boot/resize"
|
||||||
}
|
}
|
||||||
file configs/manifest {
|
file configs/manifest {
|
||||||
image = "boot/configs/manifest"
|
image = "boot/configs/manifest"
|
||||||
|
|||||||
Reference in New Issue
Block a user