gtxaspec / wz_mini_hacks

wz camera mods... make your camera better.
1.33k stars 114 forks source link

Feature request: clean up FSCKxxxx.REC files on SD Card #629

Closed archandanime closed 1 year ago

archandanime commented 1 year ago

fsck.vfat in initramfs init helps fixing corruption on SD Card and I want to leave it on but it also creates a lot of FSCKxxxx.REC files on SD Card. Can wz_mini_hacks clean up them? or maybe put them all together on a directory on SD Card.

archandanime commented 1 year ago

This can be done by writing a script at /opt/wz_mini/etc/rc.local.d to clean up the files:

#!/bin/sh
#
# This script cleans up FSCKxxxx.REC files on SD Card
#

if df / | grep -q overlayfs; then
        rm /sdcard/FSCK????.REC
else
        rm /opt/FSCK????.REC
fi