Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschwenn committed Nov 21, 2012
1 parent 2fe6d38 commit e5d55da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file removed disablebonjour/.disablebonjour.sh.swp
Binary file not shown.
5 changes: 3 additions & 2 deletions disablebonjour/disablebonjour.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
# MAKES SURE WE ARE AT LEAST RUNNING 10.6 OR NEWER
if [[ $(sw_vers -productVersion | grep '10.[6-9]') ]]
then
# CHECKS FOR FLAG IN CURRENT PLIST FILE
if [[ $(sudo /usr/libexec/PlistBuddy -c Print /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist | grep 'NoMulticast') ]]
then
echo "SORRY, MULTICAST IS ALREADY DISABLED"
else
sudo /usr/libexec/PlistBuddy -c "Add :ProgramArguments: string -NoMulticastAdvertisements" /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
echo "PLEASE REBOOT"
else
echo "SORRY, MULTICAST IS ALREADY DISABLED"
fi
exit
else
Expand Down

0 comments on commit e5d55da

Please sign in to comment.