Advertisement
Guest User

sl_disk_setup.applescript

a guest
Jun 10th, 2020
1,628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. do shell script "if [ -a /Volumes/'Mac OS X Install DVD'* ]; then { vol=(/Volumes/'Mac OS X Install DVD'*); mountrw='while true; do /sbin/mount -u -o rw / && break; sleep 1; done; '; mountro='; while true; do /sbin/mount -u -o ro / && break; sleep 1; done; touch /tmp/test_ro 2>/dev/null && rm /tmp/test_ro 2>/dev/null && shutdown -r now'; }; else { unset mountrw; unset mountro; while read thisVol; do grep -q '10.6' /Volumes/\"$thisVol\"/System/Library/CoreServices/SystemVersion.plist 2>/dev/null && vol=/Volumes/\"$thisVol\" && break; done <<< \"$(ls -1 /Volumes)\"; }; fi; if [ -a \"$vol\" ]; then { cd \"$vol\"; echo \"$mountrw\"'/bin/rm /System/Library/CoreServices/ServerVersion.plist'\"$mountro\" > etc/rc.local; echo \"$mountrw\"'/bin/cp /System/Library/CoreServices/SystemVersion.plist /System/Library/CoreServices/ServerVersion.plist' > etc/rc.shutdown.local; cd System/Library/CoreServices; cp SystemVersion.plist ServerVersion.plist; echo done; }; else echo 'Snow Leopard volume not found'; fi" with administrator privileges
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement