summaryrefslogtreecommitdiffstats
path: root/rc.d/rc
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-09-21 15:58:58 +0000
committerBill Nottingham <notting@redhat.com>2001-09-21 15:58:58 +0000
commit8efba0500dd67a6bfe3b0a30a64061cf585dd293 (patch)
tree373025715db82c1a3de82efb0b137d0dca6357e7 /rc.d/rc
parent11f176d4896e418b12da2cb9c9d420390cd16cdc (diff)
Backport some fixes from the 7.2 branch:
- unmounting of loopback devices - unmounting of /initrd - don't blow up on ext3/reiserfs in /etc/init.d/halt - module alias determination fixes - quota tweaks
Diffstat (limited to 'rc.d/rc')
-rwxr-xr-xrc.d/rc10
1 files changed, 9 insertions, 1 deletions
diff --git a/rc.d/rc b/rc.d/rc
index b165b6b4..b8ead1d7 100755
--- a/rc.d/rc
+++ b/rc.d/rc
@@ -98,7 +98,15 @@ if [ -d /etc/rc$runlevel.d ]; then
# Bring the subsystem up.
if egrep -q "(daemon |action )" $i ; then
- $i start
+ if [ "$subsys" = "halt" -o "$subsys" = "reboot" ]; then
+ unset LANG
+ unset LC_ALL
+ unset TEXTDOMAIN
+ unset TEXTDOMAINDIR
+ exec $i start
+ else
+ $i start
+ fi
else
if [ "$subsys" = "halt" -o "$subsys" = "reboot" -o "$subsys" = "single" -o "$subsys" = "local" ]; then
if [ "$subsys" = "halt" -o "$subsys" = "reboot" ]; then