Browse files

.osx: Use `sudo` to set the NetBIOS name

  • Loading branch information...
1 parent 9a6037a commit 65857d0c6c6ca118e45ceeb536f34b6b493e6cac @mathiasbynens committed Aug 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 .osx
2 .osx
@@ -16,7 +16,7 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
sudo scutil --set ComputerName "MathBook Pro"
sudo scutil --set HostName "MathBook Pro"
sudo scutil --set LocalHostName "MathBook-Pro"
-defaults write /Library/Preferences/SystemConfiguration/ NetBIOSName -string "MathBook-Pro"
+sudo defaults write /Library/Preferences/SystemConfiguration/ NetBIOSName -string "MathBook-Pro"
# Menu bar: disable transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false

0 comments on commit 65857d0

Please sign in to comment.