InfiniteMac OSx86  


Reply
 
Thread tools Display modes
  #1  
Old 07-14-2008, 04:28 PM
LawlessPPC's Avatar
LawlessPPC LawlessPPC is offline
 
Join Date: May 2008
Location: United Kingdom
Posts: 506
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

Reply With Quote
  #2  
Old 07-16-2008, 11:36 AM
zephyroth's Avatar
zephyroth zephyroth is offline
 
Join Date: Jan 2008
Location: North of France
Posts: 518
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
$3 means the destination drive.

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
Reply With Quote
  #3  
Old 07-16-2008, 04:39 PM
LawlessPPC's Avatar
LawlessPPC LawlessPPC is offline
 
Join Date: May 2008
Location: United Kingdom
Posts: 506
Zephy thanx for the help. Have you been away?? Also is this the reason alcinject doesnt work straight after install.

Thanks
LawlessPPC

Reply With Quote
  #4  
Old 07-16-2008, 08:02 PM
LawlessPPC's Avatar
LawlessPPC LawlessPPC is offline
 
Join Date: May 2008
Location: United Kingdom
Posts: 506
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.,....

Reply With Quote
  #5  
Old 07-16-2008, 08:41 PM
LawlessPPC's Avatar
LawlessPPC LawlessPPC is offline
 
Join Date: May 2008
Location: United Kingdom
Posts: 506
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

Reply With Quote
  #6  
Old 07-16-2008, 10:24 PM
LawlessPPC's Avatar
LawlessPPC LawlessPPC is offline
 
Join Date: May 2008
Location: United Kingdom
Posts: 506
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.


Reply With Quote
Reply