From 7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 2 Jan 2001 22:42:09 +0000 Subject: Big i18n commit. From Conectiva, originally. --- rc.d/rc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'rc.d/rc') diff --git a/rc.d/rc b/rc.d/rc index 5bf59c8a..2606f81d 100755 --- a/rc.d/rc +++ b/rc.d/rc @@ -9,9 +9,6 @@ # Miquel van Smoorenburg, # -# Source function library. -. /etc/init.d/functions - # Now find out what the current and what the previous runlevel are. argv1="$1" set `/sbin/runlevel` @@ -19,15 +16,18 @@ runlevel=$2 previous=$1 export runlevel previous +# Source function library. +. /etc/init.d/functions + # See if we want to be in user confirmation mode if [ "$previous" = "N" ]; then if grep -i confirm /proc/cmdline >/dev/null || [ -f /var/run/confirm ] ; then rm -f /var/run/confirm CONFIRM=yes - echo "Entering interactive startup" + gprintf "Entering interactive startup\n" else CONFIRM= - echo "Entering non-interactive startup" + gprintf "Entering non-interactive startup\n" fi fi @@ -58,7 +58,7 @@ if [ -d /etc/rc$runlevel.d ]; then if egrep -q "(killproc |action )" $i ; then $i stop else - action "Stopping $subsys: " $i stop + action "Stopping %s: " $subsys $i stop fi done @@ -101,7 +101,7 @@ if [ -d /etc/rc$runlevel.d ]; then if [ "$subsys" = "halt" -o "$subsys" = "reboot" -o "$subsys" = "single" -o "$subsys" = "local" ]; then $i start else - action "Starting $subsys: " $i start + action "Starting %s: " $subsys $i start fi fi done -- cgit