From 948db4b6fa27c4839c8ee3caa1b29239e3664961 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Wed, 18 Oct 2023 21:06:46 +0200 Subject: [PATCH] mac: actually delete the clients.db This hopefully makes the client tracking work better. Before this change, the Web UI would not be able to track clients, probably because the database contains garbage. Now that we delete the file properly, it will be re-generated (in the volatile tmpfs) and the Web UI should show everything nicely. --- files/etc/init.d/volatile-client-macs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/etc/init.d/volatile-client-macs b/files/etc/init.d/volatile-client-macs index 7b12913..e31ce26 100644 --- a/files/etc/init.d/volatile-client-macs +++ b/files/etc/init.d/volatile-client-macs @@ -15,7 +15,7 @@ start() { # We mount a tmpfs so that the client database will be stored in memory only mount -t tmpfs / "$tmpdir" cp -a /etc/oui-tertf/client.db "$tmpdir" - shred /etc/oui-tertf/client.db || rm -f /etc/oui-tertf/client.db + shred --force --remove /etc/oui-tertf/client.db || rm -f /etc/oui-tertf/client.db # If this script runs multiple times, we accumulate mounts; we try to avoid having mounts over mounts, so we unmount any existing tmpfs umount -t tmpfs -l /etc/oui-tertf