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).
This commit is contained in:
Franco Fichtner 2025-03-28 12:50:07 +01:00
parent 3a9e9edefe
commit d8ecd8c31b

View File

@ -1,6 +1,6 @@
#!/bin/sh
# Copyright (c) 2015-2022 Franco Fichtner <franco@opnsense.org>
# Copyright (c) 2015-2025 Franco Fichtner <franco@opnsense.org>
#
# 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
;;