mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
Geaendert:
* Neuer Ladebalken, in rot und gelb. Jetzt auch bein Herunterfahren. * SCSI-Diskette 2,88MB statt 1,44MB. * Scripte unter tools/ aufgeraumt. * Bootsplash-Bilder gefixt. Geloescht: * Ueberfluessige Sprachen. * Morningreconnect-Script. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@213 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -1,36 +1,58 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $Id: rc.halt,v 1.4.2.2 2005/07/07 20:11:58 franck78 Exp $
|
||||
# rc.halt for ipfire 2006
|
||||
#
|
||||
|
||||
progressbar()
|
||||
{
|
||||
if [ $# != 1 ]
|
||||
then
|
||||
echo "Usage: progressbar {progress}"
|
||||
exit 1
|
||||
fi
|
||||
echo "show $(( 65534 * $1 / 9 ))" > /proc/splash
|
||||
}
|
||||
# Set bootsplash
|
||||
progressbar 0
|
||||
echo "silent" > /proc/splash
|
||||
|
||||
echo "Stopping the RED interface..."
|
||||
progressbar 1
|
||||
/etc/rc.d/rc.red stop 2>/dev/null
|
||||
/etc/rc.d/rc.red clear 2>/dev/null
|
||||
|
||||
echo "Shutting down..."
|
||||
progressbar 2
|
||||
sleep 3
|
||||
|
||||
echo "Saving the clock"
|
||||
progressbar 3
|
||||
/sbin/hwclock --systohc
|
||||
|
||||
echo "Sending all processes the TERM signal..."
|
||||
progressbar 4
|
||||
/sbin/killall5 -15
|
||||
sleep 3
|
||||
|
||||
echo "Sending all processes the KILL signal..."
|
||||
progressbar 5
|
||||
/sbin/killall5 -9
|
||||
sleep 3
|
||||
|
||||
if [ -e /etc/FLASH ]; then
|
||||
if [ -e /etc/rc.d/rc.flash.down ]; then
|
||||
echo "Compressing logs"
|
||||
. /etc/rc.d/rc.flash.down
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Turning off swap"
|
||||
progressbar 6
|
||||
swapoff -a
|
||||
|
||||
echo "Unmounting others"
|
||||
progressbar 7
|
||||
umount -n -a
|
||||
|
||||
echo "Unmounting root"
|
||||
progressbar 8
|
||||
mount -n -o remount,ro /
|
||||
|
||||
# Send nice shutdown beep now
|
||||
progressbar 9
|
||||
/usr/bin/beep -l 75 -f 3000
|
||||
/usr/bin/beep -l 75 -f 2000
|
||||
/usr/bin/beep -l 75 -f 1000
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# IPFire SCRIPTs
|
||||
#
|
||||
# This code is distributed under the terms of the GPL
|
||||
#
|
||||
# (c) The IPFire Team
|
||||
|
||||
# begin
|
||||
|
||||
if [ -e "/var/ipfire/ppp/morningreconnect" ]; then
|
||||
logger -t ipfire MorningReconnect executed!
|
||||
/etc/rc.d/rc.red stop
|
||||
/bin/sleep 10
|
||||
/etc/rc.d/rc.red start
|
||||
fi
|
||||
|
||||
# end
|
||||
Reference in New Issue
Block a user