[~] Refactor

This commit is contained in:
Siarhei Siniak 2023-01-01 20:31:59 +03:00
parent ba0b9dbd55
commit bc0c8cc85c

@ -1188,6 +1188,8 @@ def desktop_services(argv):
try: try:
if options.cpufreq == 0: if options.cpufreq == 0:
print('launching cpufreq, need sudo') print('launching cpufreq, need sudo')
subprocess.check_call(['sudo', 'whoami'])
services.append( services.append(
subprocess.Popen(r''' subprocess.Popen(r'''
exec sudo sh -c 'echo cpufreq, user; whoami; exec sudo sh -c 'echo cpufreq, user; whoami;
@ -1509,7 +1511,7 @@ def socat_ssh(argv):
r''' r'''
exec %s exec %s
''' % ' '.join( ''' % ' '.join(
ssh_command + options.gateway_command ssh_command + [options.gateway_command]
) )
) )
gateway.flush() gateway.flush()