Jump to content

Little help with postinstall script in packagemaker


  • Please log in to reply
2 replies to this topic

#1
XLR

XLR

    2cores1cpu.mov

  • Donators
  • 889 posts
  • Location:חולון
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 :)

#2
iFIRE

iFIRE

    InsanelyMacaholic

  • Moderators
  • 3,775 posts
  • Gender:Male
  • Location:Bcn-Spain
#!/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
  • XLR likes this

#3
XLR

XLR

    2cores1cpu.mov

  • Donators
  • 889 posts
  • Location:חולון
Thanks you, it works great!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy