diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /packaging/macosx/ChmodBPF/uninstall-scripts | |
parent | Initial commit. (diff) | |
download | wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip |
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/macosx/ChmodBPF/uninstall-scripts')
-rwxr-xr-x | packaging/macosx/ChmodBPF/uninstall-scripts/postinstall | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/packaging/macosx/ChmodBPF/uninstall-scripts/postinstall b/packaging/macosx/ChmodBPF/uninstall-scripts/postinstall new file mode 100755 index 00000000..93a33b4c --- /dev/null +++ b/packaging/macosx/ChmodBPF/uninstall-scripts/postinstall @@ -0,0 +1,26 @@ +#!/bin/sh + +# +# Remove the following: +# - The ChmmodBPF launch daemon +# - The ChmmodBPF script +# - The access_bpf group +# + +CHMOD_BPF_PLIST="/Library/LaunchDaemons/org.wireshark.ChmodBPF.plist" +BPF_GROUP="access_bpf" + +launchctl bootout system "$CHMOD_BPF_PLIST" + +dscl . -read /Groups/"$BPF_GROUP" > /dev/null 2>&1 && \ + dseditgroup -q -o delete "$BPF_GROUP" + +rm -rf "/Library/Application Support/Wireshark" + +rm -f "$CHMOD_BPF_PLIST" + +# ChmodBPF hasn't been a startup item since 2018 (ac4f3c0f4d). +rm -rf /Library/StartupItems/ChmodBPF + +# https://gitlab.com/wireshark/wireshark/-/issues/18734 +pkgutil --forget org.wireshark.ChmodBPF.pkg |