Import the OSX installer, made with Packages.

This commit is contained in:
Frank Denis
2012-02-29 22:27:01 -08:00
parent 0d235b3de1
commit d3262fbbd8
10 changed files with 2658 additions and 0 deletions
@@ -0,0 +1,10 @@
#! /bin/sh
exec 2>/dev/null
chown root:admin '/Library/Application Support/DNSCrypt Updater'
chmod 710 '/Library/Application Support/DNSCrypt Updater'
/bin/launchctl load -D local
/bin/launchctl start com.opendns.osx.DNSCryptConfigUpdater
exit 0
@@ -0,0 +1,14 @@
#! /bin/sh
exec 2>/dev/null
/bin/launchctl remove com.opendns.osx.DNSCryptConfigUpdater
i=0
while [ "$i" -lt 5 ]; do
sleep 1
fgrep 127.0.0.1 /etc/resolv.conf > /dev/null || exit 0
i=$((i+1))
done
rm -f /var/run/com.opendns.osx.DNSCryptConfigUpdater/sock
exit 0