Browse Source

Add files via upload

MoeClub 5 years ago
parent
commit
2c1bc89553
1 changed files with 6 additions and 0 deletions
  1. 6 0
      MacInitial.sh

+ 6 - 0
MacInitial.sh

@@ -4,6 +4,9 @@ if [ -f "/usr/bin/sudo" ]; then
   #Unload System Daemons
   echo "Unload System Daemons ..."
   [ "$(sudo whoami)" == "root" ] || return
+  # System setting
+  sudo defaults write com.apple.loginwindow TALLogoutSavesState -bool FALSE
+  sudo defaults write com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool FALSE
 
   cd "/Volumes/$(ls -1 /Volumes|head -n1)/System/Library/LaunchDaemons"
 
@@ -146,3 +149,6 @@ RMAPP "Podcasts.app"
 RMAPP "Stocks.app"
 RMAPP "Music.app"
 
+
+
+