diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-06-06 23:41:51 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-06-07 06:42:59 +0000 |
commit | b319a67bfb23a93a7f15076a94be3fe6adb9983d (patch) | |
tree | e3d494e42fb15df130159a78bd0142bed58dfa9b /packaging/macosx | |
parent | b69642db300a44c244ccbc641facc9cb0c86d072 (diff) | |
download | wireshark-b319a67bfb23a93a7f15076a94be3fe6adb9983d.tar.gz |
When installing the launch daemon, get rid of the old startup item.
Only one is necessary; get rid of the startup item.
Change-Id: I0bd2dabb3fc286ccd0e6634bc112e20602624c86
Reviewed-on: https://code.wireshark.org/review/2016
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'packaging/macosx')
-rwxr-xr-x | packaging/macosx/Scripts/chmodbpf-postinstall.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packaging/macosx/Scripts/chmodbpf-postinstall.sh b/packaging/macosx/Scripts/chmodbpf-postinstall.sh index cbd2f08f12..c7f48a4cb2 100755 --- a/packaging/macosx/Scripts/chmodbpf-postinstall.sh +++ b/packaging/macosx/Scripts/chmodbpf-postinstall.sh @@ -4,6 +4,8 @@ CHMOD_BPF="/Library/LaunchDaemons/org.wireshark.ChmodBPF.plist" BPF_GROUP="access_bpf" BPF_GROUP_NAME="BPF device access ACL" +rm -rf /Library/StartupItems/ChmodBPF + 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" |