diff options
author | Bill Nottingham <notting@redhat.com> | 2001-07-09 05:29:52 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-07-09 05:29:52 +0000 |
commit | f15751c23c629dfeb2de45e0c74fad306b895517 (patch) | |
tree | c1fed90bbd5c23b6c74fa481505aa0ba66f0a0e3 | |
parent | e9a0dc375f0e8cebd794f7821f58651a109f3d3d (diff) | |
download | initscripts-f15751c23c629dfeb2de45e0c74fad306b895517.tar initscripts-f15751c23c629dfeb2de45e0c74fad306b895517.tar.gz initscripts-f15751c23c629dfeb2de45e0c74fad306b895517.tar.bz2 initscripts-f15751c23c629dfeb2de45e0c74fad306b895517.tar.xz initscripts-f15751c23c629dfeb2de45e0c74fad306b895517.zip |
add check for reboot/halt in the 'action' case as well (#45966)
-rwxr-xr-x | rc.d/rc | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |