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
Zephy thanx for the help. Have you been away? Also is this the reason alcinject doesnt work straight after install.
LawlessPPC
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.,…
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
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
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)
| Username | Dossier Contribution | Dispatches | Active Window |
|---|---|---|---|
| @LawlessPPC | Primary Author | 5 | 2008-07-14 → 2008-07-16 |
| @zephyroth | Contributor | 1 | 2008-07-16 |