I want to run after every reboot, with no user logged
kextunload /System/Library/Extensions/AppleHDA.kext
I tried to do a bash script here :
#!/bin/sh
PATH=/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin
kextunload /System/Library/Extensions/AppleHDA.kext
echo "Internal Speaker disabled"
however trying the bash script in terminal give me this result "command not found"
What do I do wrong if not everything.
PS : when resolved, do I just leave my script in "/etc/crontab" (so he can be run every time at boot) or do I still have to do env EDITOR=nano crontab -e and add the job