Import the OSX installer, made with Packages.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user