[arch-projects] [initscripts] Patch to fix FS#24879
Jacob Okamoto
jacobokamoto at gmail.com
Sun Jun 26 15:28:15 EDT 2011
Patch to fix FS#24879, clearing terminal text formatting after nonexistent daemon script failure in rc.d.
Signed-off-by: Jacob Okamoto <jacobokamoto at gmail.com>
---
rc.d | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/rc.d b/rc.d
index 6d9a9f7..58dcfdc 100755
--- a/rc.d
+++ b/rc.d
@@ -69,8 +69,9 @@ 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."
fi
+ printf "${C_CLEAR}\n"
(( ret += !! $? )) # clamp exit value to 0/1
done
;;
--
1.7.5.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4255 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20110626/5253db52/attachment.p7s>
More information about the arch-projects
mailing list