From f15751c23c629dfeb2de45e0c74fad306b895517 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 9 Jul 2001 05:29:52 +0000 Subject: add check for reboot/halt in the 'action' case as well (#45966) --- rc.d/rc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rc.d/rc b/rc.d/rc index b165b6b4..d0f0bb66 100755 --- a/rc.d/rc +++ b/rc.d/rc @@ -98,7 +98,14 @@ 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 else if [ "$subsys" = "halt" -o "$subsys" = "reboot" -o "$subsys" = "single" -o "$subsys" = "local" ]; then if [ "$subsys" = "halt" -o "$subsys" = "reboot" ]; then -- cgit v1.2.1