How to run a sudo command on startup - launch daemon help
문제
I have a sound problem on my 2010 Mac mini. I found a solution that uses a sudo
command in the Terminal app. But this method only works one time, so when the computer turns off and then back on, you need to start over..
Please bear with me - I'm new in this Mac universe.
From this site, I’ve found that you can use a Launch Daemon to execute it.
I can't seem to figure out a working file.
My sudo
command for the sound fix is:
sudo kextunload /System/Library/Extensions/AppleHDA.kext
After that type:
sudo kextload /System/Library/Extensions/AppleHDA.kext
Remember, sudo
requires an administrator password.
My idea here is to run this at startup so I don't have to type it every time.
Can someone help me write it?
올바른 솔루션이 없습니다
제휴하지 않습니다 apple.stackexchange