redo users and ssh
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user