mirror of
https://github.com/srlabs/blue-merle.git
synced 2024-12-22 13:55:00 -05:00
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:
parent
7b64f3aa9b
commit
f8d35b15d5
@ -5,7 +5,8 @@
|
|||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
# We mount a tmpfs so that the client database will be stored in memory only
|
# We mount a tmpfs so that the client database will be stored in memory only
|
||||||
mount -t tmpfs / "$tmpdir"
|
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"
|
cp -a /etc/oui-tertf/client.db "$tmpdir"
|
||||||
shred /etc/oui-tertf/client.db || rm -f /etc/oui-tertf/client.db
|
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
|
# If this script runs multiple times, we accumulate mounts; we try to avoid having mounts over mounts, so we unmount any existing tmpfs
|
||||||
|
Loading…
Reference in New Issue
Block a user