# Changes: Grzegorz Stanislawski <stangrze@open.net.pl>
# Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
#
-# $Id: single,v 1.9.2.1 2000/10/18 20:10:50 misiek Exp $
+# $Id: single,v 1.9.2.2 2001/09/30 10:19:38 misiek Exp $
# Set the path.
PATH=/sbin:/bin:/usr/sbin:/usr/bin
. /etc/rc.d/init.d/functions
-case "$1" in
- stop*)
- exit 0
- ;;
- start*)
-# Kill all processes.
- [ "${BASH+bash}" = bash ] && enable kill
-
- run_cmd "Sending all processes the TERM signal" killall5 -15
- sleep 5
- run_cmd "Sending all processes the KILL signal" killall5 -9
+if [ "$1" != "start" ] ; then
+ exit 0
+fi
- rm -f /var/lock/subsys/*
+rm -f /var/lock/subsys/*
- # this looks nices
- [ -x /usr/bin/clear ] && /usr/bin/clear
+# this looks nices
+[ -x /usr/bin/clear ] && /usr/bin/clear
# make sure modprobe is working
if [ -f /proc/sys/kernel/modprobe ]; then
$i start
done
- # Now go to the single user level.
- show "Telling INIT to go to single user mode"; ok
- exec init -t1 S
- ;;
-esac
+# Now go to the single user level.
+show "Telling INIT to go to single user mode"; ok
+exec init -t1 S
# This must be last line !
# vi:syntax=sh:tw=78:ts=8:sw=4