launchdaemons and dscl . -create
I have a script that determines if the machines is a laptop or a desktop, and the creates a local group and populates the enetaddress with the correct information. It works when I run from the command line, but fails if I set it up as a launchdaemon.
I have tried putting the plist in both the launchdaemons and launchagents folders, yet it errors out everytime, but I can get into terminal and manually run it with success.
Does anyone have any other idea I can try?
Thanks in advance!