From 70d424b2a0f873afd17dc493f46818a5658de954 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Mon, 19 Jun 2017 22:49:51 +0200 Subject: [refactor] remove dead code --- src/leap/bitmask/vpn/launchers/linux.py | 43 --------------------------------- 1 file changed, 43 deletions(-) (limited to 'src/leap') 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 -- cgit v1.2.3