diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-06-19 22:49:51 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-06-19 22:49:51 +0200 |
commit | 70d424b2a0f873afd17dc493f46818a5658de954 (patch) | |
tree | a6f23b49e837cea91f5f15bb3e733af2b23d2a40 /src/leap/bitmask/vpn/launchers | |
parent | 443be842817439154fbee3f54ce89b4bba612776 (diff) |
[refactor] remove dead code
Diffstat (limited to 'src/leap/bitmask/vpn/launchers')
-rw-r--r-- | src/leap/bitmask/vpn/launchers/linux.py | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/leap/bitmask/vpn/launchers/linux.py b/src/leap/bitmask/vpn/launchers/linux.py index 00423ab8..2edfb5ea 100644 --- a/src/leap/bitmask/vpn/launchers/linux.py +++ b/src/leap/bitmask/vpn/launchers/linux.py @@ -106,46 +106,3 @@ class LinuxVPNLauncher(VPNLauncher): command.insert(0, first(pkexec)) return command - - @classmethod - def cmd_for_missing_scripts(kls, frompath): - """ - Returns a sh script that can copy the missing files. - - :param frompath: The path where the helper files live - :type frompath: str - - :rtype: str - """ - bin_paths = force_eval( - (LinuxVPNLauncher.POLKIT_PATH, - LinuxVPNLauncher.OPENVPN_BIN_PATH, - LinuxVPNLauncher.BITMASK_ROOT)) - - polkit_path, openvpn_bin_path, bitmask_root = bin_paths - - # no system config for now - # sys_config = kls.SYSTEM_CONFIG - (polkit_file, openvpn_bin_file, - bitmask_root_file) = map( - lambda p: os.path.split(p)[-1], - bin_paths) - - cmd = '#!/bin/sh\n' - cmd += 'mkdir -p /usr/local/sbin\n' - - cmd += 'cp "%s" "%s"\n' % (os.path.join(frompath, polkit_file), - polkit_path) - cmd += 'chmod 644 "%s"\n' % (polkit_path, ) - - cmd += 'cp "%s" "%s"\n' % (os.path.join(frompath, bitmask_root_file), - bitmask_root) - cmd += 'chmod 744 "%s"\n' % (bitmask_root, ) - - if flags_STANDALONE: - cmd += 'cp "%s" "%s"\n' % ( - os.path.join(frompath, openvpn_bin_file), - openvpn_bin_path) - cmd += 'chmod 744 "%s"\n' % (openvpn_bin_path, ) - - return cmd |