From b6589f2ffd02f9a5dbbf474153f19680bda4fcdf Mon Sep 17 00:00:00 2001 From: Nebula Date: Sat, 17 Sep 2022 08:48:02 -0400 Subject: [PATCH] only run defaults write on darwin --- palera1n.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/palera1n.sh b/palera1n.sh index eccf17f..4a5646b 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -216,9 +216,11 @@ $dir/irecovery -f boot/kernelcache.img4 sleep 1 $dir/irecovery -c "bootx" -defaults write -g ignore-devices -bool false -defaults write com.apple.AMPDevicesAgent dontAutomaticallySyncIPods -bool false -killall Finder +if [ "$os" = 'Darwin' ]; then + defaults write -g ignore-devices -bool false + defaults write com.apple.AMPDevicesAgent dontAutomaticallySyncIPods -bool false + killall Finder +fi rm -rf work echo ""