This commit is contained in:
cronyx
2022-07-11 23:41:38 +03:00
parent dcf9d0c198
commit cf0afca185

View File

@@ -23,7 +23,7 @@ else
flash_eraseall -j /dev/${mtdchrdev}
echo "Done! Remounting..."
mount -t jffs2 /dev/${mtdblkdev} /overlay || mount -t tmpfs tmpfs /overlay || exit
if ! cat /etc/mtab | grep ${mtdblkdev}; then
if ! cat /proc/mounts | grep ${mtdblkdev}; then
echo "--------------------------------"
echo "Crash - your flash in the trash!"
echo "--------------------------------"