redo users and ssh

This commit is contained in:
2023-12-22 18:57:01 -05:00
parent ee23c2db53
commit a07114ed85
13 changed files with 109 additions and 99 deletions

View File

@@ -1,9 +1,15 @@
import re
from subprocess import check_output
log = logging.getLogger(__name__)
def main():
dev_re = re.compile(r"Bus\s+(\d+)\s+Device\s+(\d+):\s+ID\s(\w+:\w+)\s(.+)$")
lsusb = check_output("lsusb", encoding='UTF-8')
try:
lsusb = check_output("lsusb", encoding='UTF-8')
except OSError as exc:
log.error(exc)
return {}
devices = []
corsair_aio = None
for line in lsusb.splitlines():