From 0d66f93ef3a1f77bdaa1ffb39301e46f2535b122 Mon Sep 17 00:00:00 2001
From: "D.S. Ljungmark" <ljungmark@modio.se>
Date: Thu, 7 Nov 2019 17:41:17 +0100
Subject: [PATCH] Enable fstrim.timer to increase SDCard lifetime

fstrim timer triggers weekly to issue TRIM/DISCARD on devices that support it,
which includes SD and MMC devices.

This marks all unused diskspace as available for internal garbage collection
and wear levelling on the card.  It's preferrable to use the timer to the
discard option, as it involves a one-off cost of latency over a global slowing
down of all write or erase requests that the `discard` mount option does.
---
 builder/pwnagotchi.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/builder/pwnagotchi.yml b/builder/pwnagotchi.yml
index f369014..8e68b39 100644
--- a/builder/pwnagotchi.yml
+++ b/builder/pwnagotchi.yml
@@ -23,6 +23,7 @@
         - bettercap.service
         - pwngrid-peer.service
         - epd-fuse.service
+        - fstrim.timer
       disable:
         - apt-daily.timer
         - apt-daily.service