Merge pull request #12526 from Security-Onion-Solutions/jertel/status

unswap files
This commit is contained in:
Jason Ertel
2024-03-07 14:49:17 -05:00
committed by GitHub

View File

@@ -56,7 +56,7 @@ def check_for_fps():
# Unknown, so assume 0 # Unknown, so assume 0
fps = 0 fps = 0
with open('/opt/so/log/sostatus/lks_enabled', 'w') as f: with open('/opt/so/log/sostatus/fps_enabled', 'w') as f:
f.write(str(fps)) f.write(str(fps))
def check_for_lks(): def check_for_lks():
@@ -80,7 +80,7 @@ def check_for_lks():
lks = 1 lks = 1
if lks: if lks:
break break
with open('/opt/so/log/sostatus/fps_enabled', 'w') as f: with open('/opt/so/log/sostatus/lks_enabled', 'w') as f:
f.write(str(lks)) f.write(str(lks))
def fail(msg): def fail(msg):