add build image

This commit is contained in:
tiopex
2023-03-13 13:28:06 +01:00
parent f6dbd54c41
commit fa8b4b1683
3784 changed files with 6309 additions and 122 deletions

View File

@@ -0,0 +1,33 @@
#!/bin/sh
sync
echo " "
echo "Checking FAT filesystem..."
echo " "
sleep 2
if dmesg | grep "mmcblk0p1"; then
echo -e "\e[31mUnclean shutdown detected.\e[0m"
echo -e "\e[32mChecking FAT32 (BOOT) partition...\e[0m"
fsck.vfat -a /dev/mmcblk0p1
fi
if dmesg | grep "mmcblk0p4"; then
echo -e "\e[31mUnclean shutdown detected.\e[0m"
echo -e "\e[32mChecking FAT32 (MAIN) partition...\e[0m"
fsck.vfat -a /dev/mmcblk0p4
echo " "
echo "Rebooting device, please wait..."
echo " "
sleep 2
sync
reboot
fi
echo "Finished!"
echo " "
echo " "
sync
read -t 2
sleep 1