From cf0afca1857571f04816434ba80825b66bbdf64b Mon Sep 17 00:00:00 2001
From: cronyx <xcronyx@gmail.com>
Date: Mon, 11 Jul 2022 23:41:38 +0300
Subject: [PATCH] hotfix

---
 general/overlay/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 "--------------------------------"