Jump to content

Little help with postinstall script in packagemaker


XLR
 Share

3 posts in this topic

Recommended Posts

Posting it here because i'm not sure what's the right forum for this question...

 

I'm trying to make a simple kext installer via packagemaker, but having troubles with postinstall script in order to make it work in ML:

 

#!/bin/sh
cd /System/Library/Extensions
sudo chown -R root:wheel AppleHDA.kext
sudo chmod -R 755 AppleHDA.kext
sudo rm /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache
sudo diskutil repairpermissions /System/Library/Extensions
exit 0

 

Can you please tell me what am I doing wrong? I'm afraid all this script is full of wrong...

 

Thanks in advance :)

Link to comment
Share on other sites

#!/bin/sh

sudo chown -R root:wheel /System/Library/Extensions/AppleHDA.kext

sudo chmod -R 755 /System/Library/Extensions/AppleHDA.kext

sudo touch /System/Library/Extensions

sudo diskutil repairPermissions /

exit

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...