mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-11-09 19:10:30 +00:00
15 lines
316 B
Plaintext
15 lines
316 B
Plaintext
|
#!/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
|