summaryrefslogtreecommitdiffstats
path: root/initrd/distro-specs/debian/files-3.1/etc/init.d/halt
diff options
context:
space:
mode:
Diffstat (limited to 'initrd/distro-specs/debian/files-3.1/etc/init.d/halt')
-rwxr-xr-xinitrd/distro-specs/debian/files-3.1/etc/init.d/halt90
1 files changed, 0 insertions, 90 deletions
diff --git a/initrd/distro-specs/debian/files-3.1/etc/init.d/halt b/initrd/distro-specs/debian/files-3.1/etc/init.d/halt
deleted file mode 100755
index 65e5b0ad..00000000
--- a/initrd/distro-specs/debian/files-3.1/etc/init.d/halt
+++ /dev/null
@@ -1,90 +0,0 @@
-#! /bin/sh
-#
-# Description: Modificated /etc/init.d/halt for use with Diskless
-# X Stations (v4.0)
-# -> replaces /etc/init.d/halt
-#
-# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 13-12-2005
-# Copyright: (c) 2003, 2005 - RZ Universitaet Freiburg
-#
-# Version: 0.0.3a
-#
-# Some parts taken from /etc/init.d/halt by
-#
-# Copyright (c) 1996-2004 SuSE Linux AG, Nuernberg, Germany.
-# All rights reserved.
-
-. /etc/rc.status
-. /etc/sysconfig/clock
-. /etc/sysconfig/suseconfig
-
-#
-# Avoid being interrupted by child or keyboard
-trap "echo" SIGINT SIGSEGV SIGQUIT SIGTERM
-set +e
-
-rc_reset
-case "$0" in
- *halt)
- message="The system is halted."
- command="halt"
- modprobe -q apm &>/dev/null
- if test -e /proc/apm -o -e /proc/acpi -o -e /proc/sys/acpi ; then
- command="halt -p"
- else
- read cmdline < /proc/cmdline
- case "$cmdline" in
- *apm=smp-power-off*|*apm=power-off*)
- command="halt -p" ;;
- esac
- fi
- ;;
- *reboot)
- message="Please stand by while rebooting the system..."
- command="reboot"
- ;;
- *)
- echo "$0: call me as \"halt\" or \"reboot\" please!"
- exit 1
- ;;
-esac
-
-# Write to wtmp file before unmounting /var (only needed with
-# persistent mounted filesystem)
-# $command -w
-
-rc_reset
-echo "Turning off swap"
-sync ; sync
-swapoff -a || rc_failed
-rc_status
-
-UMOUNT_FAILED=false
-rc_reset
-echo "Unmounting file systems and devices"
-for unmount in /media/* ; do
- umount -fnt $unmount &>/dev/null
-done
-umount -fnt /tmp/scratch &>/dev/null
-eject /dev/zip &>/dev/null &
-rc_status -v1
-
-umount -anft noproc,nonfs &>/dev/null
-
-rc_reset
-# maybe we use multiple devices
-if test -f /etc/mdtab -a -x /sbin/mdadd ; then
- echo -n "Disable Multiple Devices"
- /sbin/mdstop -a || rc_failed
- rc_status -v1
-fi
-
-sync
-
-# show "the system is down" message
-if test "$SPLASH" = yes ; then
- /sbin/splash -q -p 65535 -t "isdown"
-fi
-
-echo $message
-exec $command -d -f