From d8ecd8c31bc203c09626f8500fe6866dff3f39a5 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 28 Mar 2025 12:50:07 +0100 Subject: [PATCH] firmware: hook cleanup as hidden "f"lush command in console #8154 Some may argue the hidden commands are not good, but they are really only to be intended to be called upon request. None of these things magically fix firmware updates on their own, but can be useful (and copying console output into the forum can also be more difficult). --- src/opnsense/scripts/shell/firmware.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/opnsense/scripts/shell/firmware.sh b/src/opnsense/scripts/shell/firmware.sh index f71fbf122..1a3c1185f 100755 --- a/src/opnsense/scripts/shell/firmware.sh +++ b/src/opnsense/scripts/shell/firmware.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (c) 2015-2022 Franco Fichtner +# Copyright (c) 2015-2025 Franco Fichtner # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -100,6 +100,10 @@ ${RELEASE:-y}) run_action connection exit 0 ;; +[fF]) + run_action cleanup + exit 0 + ;; *) exit 0 ;;