From c40582e9b9d54ec760f3c76072452925fbf24db3 Mon Sep 17 00:00:00 2001 From: gutosie Date: Tue, 30 Nov 2021 22:50:48 +0200 Subject: [PATCH] Update testinout --- NeoBoot/files/testinout | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/NeoBoot/files/testinout b/NeoBoot/files/testinout index 2b4d3b1..80eb8e4 100644 --- a/NeoBoot/files/testinout +++ b/NeoBoot/files/testinout @@ -63,15 +63,11 @@ def getTestOut(): def getAccessN(): - neopro = 'UNKNOWN' + neopro = '' if os.path.exists('/usr/lib/periodon/.kodn'): with open('/usr/lib/periodon/.kodn', 'r') as f: - lines3 = f.read() + neopro = f.readline().strip() f.close() - if lines3.find('1234') != -1: - neopro = '1234' - elif not lines3.find('1234') != -1: - neopro = '1235' return neopro