Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General

 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-25-2006, 10:48 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,358
Send a message via AIM to dnanian
This isn't a really easy thing to do, but given fixed paths, you could do something like:

Code:
#! /bin/sh
if [ -a /Volumes/A/System/Library/CoreServices/BootX ]; then
   UCHGSET=$(ls -lo /Volumes/A/System/Library/CoreServices/BootX | grep -vqF uchg; echo $?);
   chflags nouchg /Volumes/A/System/Library/CoreServices/BootX;
   bless -folder /Volumes/A/System/Library/CoreServices -save9 -label A -setBoot;

   if [ $UCHGSET -eq 1 ]; then
      chflags uchg /Volumes/A/System/Library/CoreServices/BootX;
   fi;

   echo "Successfully set A as startup disk";
else 
   echo "Could not set A as the startup disk because it does not contain a valid Mac OS X System Folder.";
   exit 1;
fi

nohup /bin/bash -c "sleep 10; /Applications/SuperDuper!.app/Contents/Resources/Scripts/restart.scpt"&
__________________
--Dave Nanian
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
First Boot Experience, Seagate 400GB PushButton FW Works! greenjeens General 5 05-25-2006 08:19 AM
Copy script - Define a 'folder' as a 'target drive'? mortenosx General 3 03-22-2006 02:21 PM
Source HD won't boot after canceled Backup enderws General 3 03-04-2006 05:02 PM
BackUp hangs at 3% JimK General 10 09-27-2005 10:48 AM
Error: No space left on device tradervic General 11 06-29-2005 05:50 PM


All times are GMT -4. The time now is 04:53 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.