Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Commit d68b1dd

Browse files
kfezeraatchison
authored andcommitted
Changing how SSH is enabled.
Now using systemctl for both enabling and disabling\ modified: mycroft/client/wifisetup/main.py
1 parent fb91221 commit d68b1dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mycroft/client/wifisetup/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,14 +574,15 @@ def reset(self, event=None):
574574
def ssh_enable(self, event=None):
575575
LOG.info("Enabling SSH")
576576
try:
577-
call('touch /boot/ssh', shell=True)
577+
call('systemctl enable ssh.service', shell=True)
578+
call('systemctl start ssh.service', shell=True)
578579
except Exception as e:
579580
LOG.error("Error: {0}".format(e))
580581

581582
def ssh_disable(self, event=None):
582583
LOG.info("Disabling SSH")
583584
try:
584-
call('rm /boot/ssh', shell=True)
585+
call('systemctl stop ssh.service', shell=True)
585586
call('systemctl disable ssh.service', shell=True)
586587
except Exception as e:
587588
LOG.error("Error: {0}".format(e))

0 commit comments

Comments
 (0)