aboutsummaryrefslogtreecommitdiff
path: root/rc.d
diff options
context:
space:
mode:
authorJacob Okamoto <jacobokamoto@gmail.com>2011-06-27 03:04:23 +0200
committerTom Gundersen <teg@jklm.no>2011-06-27 03:04:23 +0200
commitec9532312b746c987a9b8a4570288f1233ee63f2 (patch)
tree22d1bd0b8a01c5fc518ee3f1de3d81390d3195db /rc.d
parent98f63a928fbf2184d8139599b1fd64cf43424691 (diff)
downloadinitscripts-ec9532312b746c987a9b8a4570288f1233ee63f2.tar.xz
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 <jacobokamoto@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d2
1 files changed, 1 insertions, 1 deletions
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