Help needed - shell script to boot up from source drive after copy completes
I have an iMac G5 (iSight), running 10.4.5, with the latest 2.1.1 SuperDuper and I have two external drives named "A" and "B".
When I use Super Duper, I boot from the "A" disk, and copy the iMac disk to B. After the copy completes, I'd like to automatically select the iMac disk as the Startup volume, and then reboot. It looks like there's a way to execute a shell script after Super Duper completes, but I have no ideea how to write shell commands to set the startup disk to Imac, and restart. Any ideas? |
This isn't a really easy thing to do, but given fixed paths, you could do something like:
Code:
#! /bin/sh |
Thanks for the shell script. The line...
Code:
chflags nouchg /Volumes/A/System/Library/CoreServices/BootX; What ended up working, though was the following Applescript, which is called by a shell script, which is called by Super Duper The Applescript: Code:
tell application "Finder" to exists disk "iMac" Code:
#! /bin/sh |
Um, I wouldn't do that, actually -- shutdown is a pretty severe way of restarting the system!
Instead, you'll find the script I provided *will* work if you run it authenticated (sudo), as SuperDuper does. |
All times are GMT -4. The time now is 08:45 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.