mirror of https://gitlab.com/Nanolx/NanoDroid
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
316 B
Bash
15 lines
316 B
Bash
#!/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
|