diff options
Diffstat (limited to 'src/leap')
-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 00423ab..2edfb5e 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 |