Skip to content

Commit

Permalink
[no ci] Overlay: update init (#1546)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorxda authored Sep 13, 2024
1 parent e270b5b commit 85e1050
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions general/overlay/init
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ if ! grep -q 'root=.*nfs\|mmcblk\|ram' /proc/cmdline; then
mtdblkdev=$(awk -F ':' '/rootfs_data/ {print $1}' /proc/mtd | sed 's/mtd/mtdblock/')
mtdchrdev=$(grep 'rootfs_data' /proc/mtd | cut -d: -f1)
if ! mount -t jffs2 /dev/$mtdblkdev /overlay || dmesg | grep -q "jffs2.*: Magic bitmask.*not found"; then
mountpoint -q /overlay && umount /overlay
echo "Formatting flash..."
grep -q 'nand' /proc/cmdline || jffs2="-j"
flash_eraseall $jffs2 /dev/$mtdchrdev
Expand Down

0 comments on commit 85e1050

Please sign in to comment.