Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Getting startup folder with bless' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Getting startup folder with bless
Authored by: jlowrey on Mar 03, '02 01:48:47PM

I found this to work:

bless -info /



[ Reply to This | # ]
Getting startup folder with bless
Authored by: zs on Mar 03, '02 11:32:16PM

jlowrey: bless -info / seems to spit out the same info regardless of which folder is blessed. I have OS 9 on a separate partition, so I'm wondering if this just works if it is blessed on the same partition.

maclaw: the boot device listed after an nvram -p just changes the number after "@0:" when switching startup disks. I don't think I want to dig into that too much right now. Interesting none the less.

I guess this just means I'll have a script that doesn't select the currently blessed system folder by default. I'll have the script posted in the forums site as soon as I'm finished.

Thank you both for your responses. Digging into the system proves to be fun and interesting!

zs



[ Reply to This | # ]
Getting startup folder with bless
Authored by: maclaw on Mar 04, '02 02:06:34AM

For me, bless -info / distinguishes between OS 9 and OS X by giving the full path to the System. Also, it is necessary to identify both the OS X startup system and the classic folder you want or Classic may not work when switching back to OS X.

Anyhow, I posted my final (for now) version of a script that both reports which system you are currently set to boot into and also offers you button choices for the system that you want (with the default button being the opposite of how you are currently set to boot). It could certainly be expanded for more complex setups, but, to conserve space, the version I posted gives only two options (one for OS 9 and one for OS X).

Others have contributed their own variations in the same forum thread. Pick the one that works for you!



[ Reply to This | # ]