diff --git a/rootfs/standard/var/www/mynode/device_info.py b/rootfs/standard/var/www/mynode/device_info.py index a95f61c9..1593ff46 100644 --- a/rootfs/standard/var/www/mynode/device_info.py +++ b/rootfs/standard/var/www/mynode/device_info.py @@ -391,6 +391,8 @@ def is_drive_being_repaired(): return os.path.isfile("/tmp/repairing_drive") def has_fsck_error(): return os.path.isfile("/tmp/fsck_error") +def clear_fsck_error(): + os.system("rm -f /tmp/fsck_error") def get_fsck_results(): try: with open("/tmp/fsck_results", "r") as f: diff --git a/rootfs/standard/var/www/mynode/mynode.py b/rootfs/standard/var/www/mynode/mynode.py index 573300a2..a564935e 100644 --- a/rootfs/standard/var/www/mynode/mynode.py +++ b/rootfs/standard/var/www/mynode/mynode.py @@ -634,6 +634,12 @@ def page_toggle_dojo(): enable_dojo() return redirect("/") +@app.route("/clear-fsck-error") +def page_clear_fsck_error(): + check_logged_in() + clear_fsck_error() + return redirect("/") + @app.route("/login", methods=["GET","POST"]) def page_login(): templateData = { diff --git a/rootfs/standard/var/www/mynode/templates/includes/main_page_messages.html b/rootfs/standard/var/www/mynode/templates/includes/main_page_messages.html index 8db9a1c8..ce7ea485 100644 --- a/rootfs/standard/var/www/mynode/templates/includes/main_page_messages.html +++ b/rootfs/standard/var/www/mynode/templates/includes/main_page_messages.html @@ -3,6 +3,7 @@

There may be an error with the filesystem on your drive.

{{ fsck_results }}

+ OK
{% endif %}