diff options
author | Tomas Touceda <chiiph@leap.se> | 2013-04-09 09:24:23 -0300 |
---|---|---|
committer | Tomas Touceda <chiiph@leap.se> | 2013-04-09 09:24:23 -0300 |
commit | 01f956f859a94f37aaebf9acc932c26564087ae8 (patch) | |
tree | eca24d5dc5bfe90c1abcea6998e91de578b76b7e /src/leap/platform_init | |
parent | fb51905d5dde6880a40b551ba185d7932cc1ae07 (diff) | |
parent | bcfdc13f5450e3df695c61c44bf637b18386f31a (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.py | 6 |
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 |