From ec9532312b746c987a9b8a4570288f1233ee63f2 Mon Sep 17 00:00:00 2001 From: Jacob Okamoto Date: Mon, 27 Jun 2011 03:04:23 +0200 Subject: rc.d: clear text formatting after error Patch to fix FS#24879, clearing terminal text formatting after nonexistent daemon script failure in rc.d. Signed-off-by: Jacob Okamoto Signed-off-by: Tom Gundersen --- rc.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d') diff --git a/rc.d b/rc.d index 6d9a9f7..a7b214e 100755 --- a/rc.d +++ b/rc.d @@ -69,7 +69,7 @@ case $1 in if [[ -x "/etc/rc.d/$i" ]]; then env -i "${ENV[@]}" "/etc/rc.d/$i" "$action" else - printf "${C_OTHER}:: ${C_FAIL}Error: ${C_DONE}Daemon script $i does not exist.\n" + printf "${C_OTHER}:: ${C_FAIL}Error: ${C_DONE}Daemon script $i does not exist.${C_CLEAR}\n" fi (( ret += !! $? )) # clamp exit value to 0/1 done -- cgit v1.2.3