Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion monitor_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def f_detect_disk_readonly():
f_logfile = open("/proc/mounts", "r")
ts = int(time.time())
for line in f_logfile:
m = re.match("^\/dev\/sd(\w+) [\w\W]* ro,[\w\W]*", line)
m = re.match("^\/dev\/\w+ [\w\W]* ro,[\w\W]*", line)
if m:
device = line.split(" ")[0]
arr.append(device)
Expand Down