Jump to content
  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
XLR

Little help with postinstall script in packagemaker

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 :)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

×