Mac OS X on x86 Hardware 2008–2024 Technical Archive
InfiniteMac OSx86 › OSx86 Core & 10.X › Installation Scripts
5,064 reads · 2008-07-14 – 2008-07-16
Note 10.X Core

Installation Scripts

OK can someone point me in the right direction where I can find the info on generating a script within an install (PKG). I think I may have it right but need clarification. Also is there a resource for terminal commands. Also what can I…

Primary Author
@LawlessPPC Published 2008-07-14
Collection
OSx86 Core & 10.X
Archival Footprint
5,064 historical reads · 1 curated field notes (from 6 dispatches) · 2008-07-14 – 2008-07-16
Credited Voices (2)
@LawlessPPC (5)@zephyroth

OK can someone point me in the right direction where I can find the info on generating a script within an install (PKG). I think I may have it right but need clarification. Also is there a resource for terminal commands. Also what can I use instead of root to make sure install goes on destination drive. eg the script needs to be run on the drive osx is being installed too. So I need a replacement for root.

Thanx in advance
LawlessPPC

Author Updates & Technical Revisions

Follow-up dispatches by @LawlessPPC

Author Update #1 @LawlessPPC 2008-07-16

Zephy thanx for the help. Have you been away? Also is this the reason alcinject doesnt work straight after install.

LawlessPPC

Author Update #2 @LawlessPPC 2008-07-16
sudo chown -R root:wheel
would this need to be sudo chown -R $3:wheel
or just change the directory after this to $3/etc.,…
Author Update #3 @LawlessPPC 2008-07-16

ok Zeph solved the alcinject issue that installs fine now just need to make alc either overright the existing applehda or stop osx overwriting the alcinjects version of applehda. Any suggestions

LawlessPPC

Author Update #4 @LawlessPPC 2008-07-16

all problems solved so far didnt realise package maker was as good as it is didnt look all the way through to notice the switches LOL *80)

Synthesized Community Field Notes

1 technical responses curated from 6 original dispatches

Field Note #1 @zephyroth 2008-07-16

You must write a shell or a perl script named "preinstall" or "postinstall" and then add it to your pkg using PackageMaker.
Example:

#!/bin/sh
rm -r $3/System/Library/Extensions/AppleEFIRuntime.kext
rm -r $3/System/Library/Extensions/AppleIntelCPUPowerManagement.kext
exit 0

$3 means the destination drive.

Hope it helps.

Sources & Contributor Provenance (2 credited usernames · Thread #1225)
UsernameDossier ContributionDispatchesActive Window
@LawlessPPCPrimary Author52008-07-14 → 2008-07-16
@zephyrothContributor12008-07-16