From bbe83486b83598a72e9a009c05b3de3a070ed80b Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 6 Jul 2023 16:33:55 +0200 Subject: [PATCH] Add colors to safe-start action --- minifirewall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minifirewall b/minifirewall index b1b659d..db0b98d 100755 --- a/minifirewall +++ b/minifirewall @@ -1198,9 +1198,9 @@ safe_start() { read -r confirm if [ ! -f "${SAFETY_LOCK}" ]; then - printf "Safety lock is not there anymore.\nYou've probably been rescued by the safety checks.\n" + printf "${YELLOW}Safety lock is not there anymore.\nYou've probably been rescued by the safety checks.\n${BOLD}Minifirewall is probably stopped.${RESET}\n" elif [ "${confirm}" != "${confirm_default}" ]; then - rm -f "${SAFETY_LOCK}" && printf "OK. Safety lock is removed.\n" + rm -f "${SAFETY_LOCK}" && printf "${GREEN}OK. Safety lock is removed.${RESET}\n" fi else syslog_info "safe-restart in non-interactive mode ; if safety lock (${SAFETY_LOCK}) is not removed in the next ${SAFETY_TIMER} seconds, minifirewall will be stopped."