pull/5/head
Tomas M 2012-09-23 01:51:03 -05:00
parent 95c1eb85ca
commit 630cfff03d
1 changed files with 6 additions and 5 deletions

View File

@ -29,9 +29,9 @@ if [ "$1" = "--killall5" ]; then
fi fi
done done
kill -SIGTERM $LIST 2>/dev/null # SIGTERM kill -15 $LIST 2>/dev/null # SIGTERM
sleep 2 # give processes some time to end sleep 2 # give processes some time to end properly
kill -SIGKILL $LIST 2>/dev/null # SIGKILL kill -9 $LIST 2>/dev/null # SIGKILL
fi fi
if [ "$1" = "--start" ]; then if [ "$1" = "--start" ]; then
@ -66,11 +66,12 @@ if [ "$1" = "--init" ]; then
# if debug is requested, start commandline prompt here # if debug is requested, start commandline prompt here
if grep -vq debug /proc/cmdline; then if grep -vq debug /proc/cmdline; then
echo Starting shell for debug >/dev/console echo "Starting shell for debug" >/dev/console
/bin/sh < /dev/console >/dev/console 2>&1 setsid sh -c 'exec sh < /dev/tty1 >/dev/tty1 2>&1'
fi fi
cat /proc/mounts >/dev/console 2>&1 cat /proc/mounts >/dev/console 2>&1
$(cat /lib/command 2>/dev/null) $(cat /lib/command 2>/dev/null)
reboot reboot
fi fi