|
|
@@ -9,6 +9,7 @@ sudo defaults write com.apple.loginwindow TALLogoutSavesState -bool FALSE
|
|
|
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist 2>/dev/null
|
|
|
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump.plist 2>/dev/null
|
|
|
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.tailspind.plist 2>/dev/null
|
|
|
+sudo find /private/var/folders -name com.apple.dock.launchpad |xargs -I {} rm -rf {} && killall Dock
|
|
|
|
|
|
sipStatus="$(csrutil status |cut -d':' -f2 |grep -io 'enable\|disable')"
|
|
|
ssvStatus="$(csrutil authenticated-root status |cut -d':' -f2 |grep -io 'enable\|disable')"
|
|
|
@@ -18,6 +19,9 @@ echo -e "\n# SIP status [Command + R]\n--> csrutil disable\n--> csrutil authenti
|
|
|
exit 1;
|
|
|
}
|
|
|
|
|
|
+[ "$1" == "-" ] || exit 0
|
|
|
+
|
|
|
+
|
|
|
temp="/tmp/MacOS"
|
|
|
volume="/Volumes/$(ls -1 /Volumes|head -n1)"
|
|
|
disk=`sudo mount |grep ' on / ' |cut -d' ' -f1 |cut -b1-12`
|
|
|
@@ -30,7 +34,7 @@ sudo umount "$disk" >/dev/null 2>&1
|
|
|
sudo mount -o nobrowse -t apfs "$disk" "$temp"
|
|
|
[ $? -eq 0 ] || exit 1
|
|
|
|
|
|
-read -p "Please Edit System File and Press <ENTER>"
|
|
|
+read -p "Please Edit System File and Press <ENTER> to continue..."
|
|
|
|
|
|
|
|
|
sudo bless --folder "$temp/System/Library/CoreServices" --bootefi --create-snapshot
|