diff --git a/projects/Amlogic/filesystem/usr/lib/systemd/system/fstrim.service b/projects/Amlogic/filesystem/usr/lib/systemd/system/fstrim.service new file mode 100644 index 0000000000..165a2a86e8 --- /dev/null +++ b/projects/Amlogic/filesystem/usr/lib/systemd/system/fstrim.service @@ -0,0 +1,9 @@ +[Unit] +Description=fstrim storage partition + +[Service] +Type=simple +ExecStart=[ -f /flash/kernel.img ] || /usr/sbin/fstrim /storage + +[Install] +WantedBy=basic.target