summaryrefslogtreecommitdiff
path: root/src/leap/platform_init
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/platform_init')
-rw-r--r--src/leap/platform_init/initializers.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/platform_init/initializers.py b/src/leap/platform_init/initializers.py
index 3cb19fc6..049d32a2 100644
--- a/src/leap/platform_init/initializers.py
+++ b/src/leap/platform_init/initializers.py
@@ -117,13 +117,14 @@ def _darwin_has_tun_kext():
"""
# XXX we should be smarter here and use kextstats output.
- has_kext = lambda: os.path.isdir("/System/Library/Extensions/tun.kext")
- has_startup = lambda: os.path.isdir("/System/Library/StartupItems/tun")
- has_tun_and_startup = has_kext() and has_startup()
+ has_kext = os.path.isdir("/System/Library/Extensions/tun.kext")
+ has_startup = os.path.isdir("/System/Library/StartupItems/tun")
+ has_tun_and_startup = has_kext and has_startup
logger.debug('platform initializer check: has tun_and_startup = %s' %
(has_tun_and_startup,))
return has_tun_and_startup
+
def DarwinInitializer():
"""
Raises a dialog in case that the osx tuntap driver has not been found