From e9e9abc4ec26be29b3a6b09e6a0b67786269183b Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Fri, 29 Jan 2016 13:18:36 -0800 Subject: [feature] privileged bitmask helper This is still quite untested, and a bit hacky, but the main idea behind let us have a daemonized bitmask helper, that should be installed by the Bitmask installer. Its responsibilities are to launch the vpn process as a privileged user, and start/stop the firewall. --- pkg/osx/pre-inst.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 pkg/osx/pre-inst.sh (limited to 'pkg/osx/pre-inst.sh') diff --git a/pkg/osx/pre-inst.sh b/pkg/osx/pre-inst.sh new file mode 100755 index 00000000..b6d17f20 --- /dev/null +++ b/pkg/osx/pre-inst.sh @@ -0,0 +1,2 @@ +#!/bin/sh +launchctl unload /Library/LaunchDaemons/se.leap.bitmask-helper.plist -- cgit v1.2.3 From 1194fa5779cbac2e1c4f891c64bbf2d912a6cbd0 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 13 Apr 2016 15:46:58 -0700 Subject: [bug] check if helper.plist file exist b4 unloading it - Fixes: #7944 - Releases: 0.9.2 --- pkg/osx/pre-inst.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/osx/pre-inst.sh') diff --git a/pkg/osx/pre-inst.sh b/pkg/osx/pre-inst.sh index b6d17f20..1651a221 100755 --- a/pkg/osx/pre-inst.sh +++ b/pkg/osx/pre-inst.sh @@ -1,2 +1,3 @@ #!/bin/sh -launchctl unload /Library/LaunchDaemons/se.leap.bitmask-helper.plist +# Bitmask Post-Instalation script +[[ -f /Library/LaunchDaemons/se.leap.bitmask-helper.plist ]] && launchctl unload /Library/LaunchDaemons/se.leap.bitmask-helper.plist -- cgit v1.2.3