mac-wipe: Do not stop terft as it cannot be stopped

The service does not implement stop() as it throws a scary warning when
installing. So we do not even attempt to stop it.
This commit is contained in:
Tobias Mueller 2023-10-18 10:36:33 +02:00
parent 7b64f3aa9b
commit f8d35b15d5
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@
tmpdir="$(mktemp -d)"
# We mount a tmpfs so that the client database will be stored in memory only
mount -t tmpfs / "$tmpdir"
/etc/init.d/gl-tertf stop
## Somehow, we cannot "stop" this service as it does not define such action. There is also no such process. Weird.
# /etc/init.d/gl-tertf stop
cp -a /etc/oui-tertf/client.db "$tmpdir"
shred /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