diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-06-06 12:14:27 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-06-06 19:17:34 +0000 |
commit | 2b2fbff2dc2af6f47edda62cedd22b22d6c9d9e0 (patch) | |
tree | f6d02ab4194f8bd2f7771ef416fadbd31d958db0 /packaging/macosx/Scripts | |
parent | 6ec09094ccba681cdcf0a4c7d1d79cad16103043 (diff) | |
download | wireshark-2b2fbff2dc2af6f47edda62cedd22b22d6c9d9e0.tar.gz |
Switch to a launch daemon for ChmodBPF.
"Ah finally blew that varmint to Kingdom Come!"
Change-Id: I4ef5f8692924772189af4158eddbc125c1c7d521
Reviewed-on: https://code.wireshark.org/review/2004
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'packaging/macosx/Scripts')
-rwxr-xr-x | packaging/macosx/Scripts/chmodbpf-postinstall.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/packaging/macosx/Scripts/chmodbpf-postinstall.sh b/packaging/macosx/Scripts/chmodbpf-postinstall.sh index d0cd33d8eb..cbd2f08f12 100755 --- a/packaging/macosx/Scripts/chmodbpf-postinstall.sh +++ b/packaging/macosx/Scripts/chmodbpf-postinstall.sh @@ -1,7 +1,6 @@ #!/bin/sh -CHMOD_BPF_DIR="/Library/StartupItems/ChmodBPF" -CHMOD_BPF="$CHMOD_BPF_DIR/ChmodBPF" +CHMOD_BPF="/Library/LaunchDaemons/org.wireshark.ChmodBPF.plist" BPF_GROUP="access_bpf" BPF_GROUP_NAME="BPF device access ACL" @@ -9,6 +8,9 @@ dscl . -read /Groups/"$BPF_GROUP" > /dev/null 2>&1 || \ dseditgroup -q -o create "$BPF_GROUP" dseditgroup -q -o edit -a "$USER" -t user "$BPF_GROUP" -chmod -R go-w "$CHMOD_BPF_DIR" +cp "/Library/Application Support/Wireshark/ChmodBPF/org.wireshark.ChmodBPF.plist" \ + "$CHMOD_BPF" +chmod 755 "$CHMOD_BPF" +chown root:wheel "$CHMOD_BPF" -sh "$CHMOD_BPF" start +launchctl load "$CHMOD_BPF" |