aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-02 22:42:09 +0000
committerBill Nottingham <notting@redhat.com>2001-01-02 22:42:09 +0000
commit7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8 (patch)
tree8fe8e14c01f63f321ab529edd56023ec15748633 /rc.d/rc
parentcb5252165b2406727af56dc1710329eec744c65c (diff)
downloadinitscripts-7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8.tar
initscripts-7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8.tar.gz
initscripts-7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8.tar.bz2
initscripts-7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8.tar.xz
initscripts-7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8.zip
Big i18n commit. From Conectiva, originally.
Diffstat (limited to 'rc.d/rc')
-rwxr-xr-xrc.d/rc14
1 files changed, 7 insertions, 7 deletions
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, <miquels@drinkel.nl.mugnet.org>
#
-# 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