diff --git a/general/overlay/init b/general/overlay/init index 7339dd7b..3eda4970 100755 --- a/general/overlay/init +++ b/general/overlay/init @@ -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 "--------------------------------"