![]() |
#1
|
||||
|
||||
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 ![]() |
#2
|
||||
|
||||
You must write a shell or a perl script named "preinstall" or "postinstall" and then add it to your pkg using PackageMaker.
Example: Code:
#!/bin/sh rm -r $3/System/Library/Extensions/AppleEFIRuntime.kext rm -r $3/System/Library/Extensions/AppleIntelCPUPowerManagement.kext exit 0 Hope it helps. Mac OS X 10.6.3 • 2.8 GHz Intel Core I7 860 • ASUS P7P55D • 2 GB 2 Ghz DDR3 • ATI RADEON XFX 4890 1GB • 2 x Hitachi 160 GB Serial-ATA • PIONEER DVD-RW DVR-112 • LaCie Desktop Harddrive 750 GB USB |
#3
|
||||
|
||||
Zephy thanx for the help. Have you been away?? Also is this the reason alcinject doesnt work straight after install.
Thanks LawlessPPC ![]() |
#4
|
||||
|
||||
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.,.... ![]() |
#5
|
||||
|
||||
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
Thanks LawlessPPC ![]() |
#6
|
||||
|
||||
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)
💡 Deploy cloud instances seamlessly on DigitalOcean. Free credits ($100) for InfMac readers. ![]() |