Skip to content

Instantly share code, notes, and snippets.

@arekdreyer
Created September 14, 2018 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arekdreyer/664994324d9e887ef2afdc9b9716cb77 to your computer and use it in GitHub Desktop.
Save arekdreyer/664994324d9e887ef2afdc9b9716cb77 to your computer and use it in GitHub Desktop.
A launch daemon that logs when /var/db/.AppleSetup done is created or modified.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.arekdreyer.AppleSetupDoneWatcher</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/logger</string>
<string>"/var/db/.AppleSetupDone was created/modified."</string>
</array>
<key>WatchPaths</key>
<array>
<string>/var/db/.AppleSetupDone</string>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment