From cb1a3eba49fabccc6f79a0d4669daebc05c31a3f Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 2 Nov 2023 23:03:09 +0100 Subject: [PATCH] Improve Bluetooth cache cleanup command Use the find's delete flag to delete the files instead of spanning a shell for each file. --- .../rootfs-overlay/usr/lib/systemd/system/haos-bt-cache.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/haos-bt-cache.service b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/haos-bt-cache.service index c59cbdb114e..c1825198d21 100644 --- a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/haos-bt-cache.service +++ b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/haos-bt-cache.service @@ -3,7 +3,7 @@ Description=Remove Bluetooth cache entries older than one week [Service] Type=oneshot -ExecStart=/bin/sh -c 'find /var/lib/bluetooth/*/cache -mindepth 1 -type f -atime +7 -exec rm {} \;' +ExecStart=/bin/sh -c 'find /var/lib/bluetooth/*/cache -mindepth 1 -type f -atime +7 -delete' PrivateDevices=yes PrivateNetwork=yes PrivateUsers=no