From 22e35e76e233ec5d0c226eb1f1cc82067126177c Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 10 Jan 2008 22:50:01 -0500 Subject: [PATCH] Improved etc/rc.d/functions.in's status to also support $? as first argument instead of $error --- base/sysfiles/etc_rc.d_functions.in.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/sysfiles/etc_rc.d_functions.in.txt b/base/sysfiles/etc_rc.d_functions.in.txt index ced36c389..ba4800629 100644 --- a/base/sysfiles/etc_rc.d_functions.in.txt +++ b/base/sysfiles/etc_rc.d_functions.in.txt @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../sysfiles/etc_rc.d_functions.in.txt -# Copyright (C) 2006 - 2007 The OpenSDE Project +# Copyright (C) 2006 - 2008 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -54,7 +54,7 @@ title() { status() { $ECHO -n "$MOVE_UP$MOVE_EOL$MOVE_LEFT_STATUS" - if [ $error -eq 0 ]; then + if [ ${1:-error} -eq 0 ]; then $ECHO "$COLOR_SUCCESS$ART_SUCCESS$COLOR_NORMAL" else $ECHO "$BELL$COLOR_FAILURE$ART_FAILURE$COLOR_NORMAL"