Add an afterboot script.

This commit is contained in:
Frank Denis
2012-08-02 19:57:33 -07:00
parent 42b0611d79
commit 72ecb1c56a
8 changed files with 55 additions and 8 deletions
@@ -5,8 +5,8 @@ exec 2>/dev/null
/bin/mkdir -p '/Library/Application Support/DNSCrypt/control'
/bin/mkdir -p '/Library/Application Support/DNSCrypt/dnscrypt-proxy'
/bin/mkdir -p '/Library/Application Support/DNSCrypt/probes'
/bin/mkdir -p '/Library/Application Support/DNSCrypt/tickets'
/bin/mkdir -p '/Library/Application Support/DNSCrypt/states'
/bin/mkdir -p '/Library/Application Support/DNSCrypt/tickets'
/usr/sbin/chown -R 0:0 '/Library/Application Support/DNSCrypt'
/bin/chmod 710 '/Library/Application Support/DNSCrypt'
@@ -20,6 +20,7 @@ if [ $? != 0 ]; then
fi
/bin/launchctl load -D local
/bin/launchctl start com.opendns.osx.DNSCryptAfterboot
/bin/launchctl start com.opendns.osx.DNSCryptConsoleChange
/bin/launchctl start com.opendns.osx.DNSCryptControlChange
/bin/launchctl start com.opendns.osx.DNSCryptNetworkChange
@@ -10,6 +10,7 @@ fi
/bin/rm -f '/Library/LaunchDaemons/com.opendns.osx.DNSCryptConfigUpdater.plist'
/bin/rm -rf '/Library/Application Support/DNSCrypt Updater'
/bin/launchctl remove com.opendns.osx.DNSCryptAfterboot
/bin/launchctl remove com.opendns.osx.DNSCryptConsoleChange
/bin/launchctl remove com.opendns.osx.DNSCryptControlChange
/bin/launchctl remove com.opendns.osx.DNSCryptNetworkChange