summaryrefslogtreecommitdiff
path: root/src/leap/platform_init
diff options
context:
space:
mode:
authorTomas Touceda <chiiph@leap.se>2013-04-09 09:24:23 -0300
committerTomas Touceda <chiiph@leap.se>2013-04-09 09:24:23 -0300
commit01f956f859a94f37aaebf9acc932c26564087ae8 (patch)
treeeca24d5dc5bfe90c1abcea6998e91de578b76b7e /src/leap/platform_init
parentfb51905d5dde6880a40b551ba185d7932cc1ae07 (diff)
parentbcfdc13f5450e3df695c61c44bf637b18386f31a (diff)
Merge remote-tracking branch 'kali/bug/deselect-remember' into develop
Diffstat (limited to 'src/leap/platform_init')
-rw-r--r--src/leap/platform_init/initializers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/platform_init/initializers.py b/src/leap/platform_init/initializers.py
index 055c90a2..cf7e71b8 100644
--- a/src/leap/platform_init/initializers.py
+++ b/src/leap/platform_init/initializers.py
@@ -117,9 +117,9 @@ 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