[arch-projects] [INITSCRIPTS][PATCH 3/4] New smarter display of bad daemon names in rc.d

Sebastien Luttringer seblu at seblu.net
Tue Aug 23 05:05:55 EDT 2011


Signed-off-by: Sebastien Luttringer <seblu at seblu.net>
---
 rc.d |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rc.d b/rc.d
index 5cb03f8..9b0f092 100755
--- a/rc.d
+++ b/rc.d
@@ -69,8 +69,8 @@ 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 \`%s' does not exist or is not executable.${C_CLEAR}\n" \
-					"$i"
+				printf "${C_FAIL}:: ${C_DONE}Daemon ${C_FAIL}$i${C_DONE} does not exist \
+or is not executable${C_CLEAR}\n"
 			fi
 			(( ret += !! $? ))  # clamp exit value to 0/1
 		done
-- 
Sebastien "Seblu" Luttringer



More information about the arch-projects mailing list