2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-09 19:10:30 +00:00
NanoDroid/Full/system/etc/init.d/fstrim
Christopher Roy Bratusek ec30353eac Initial commit
2018-01-23 21:11:52 +01:00

15 lines
316 B
Bash
Executable File

#!/system/bin/sh
echo "fstrim init script"
if [ -e /init.fstrim.sh ]; then
echo "/init.fstrim.sh exists, trimming /preload only"
fstrim -v /preload
else
echo "/init.fstrim.sh does not exist, trimming /cache, /system, /data, /preload"
fstrim -v /cache
fstrim -v /system
fstrim -v /data
fstrim -v /preload
fi