From 8efba0500dd67a6bfe3b0a30a64061cf585dd293 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 21 Sep 2001 15:58:58 +0000 Subject: 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 --- rc.d/rc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'rc.d/rc') 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 -- cgit