mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
Geaendert:
* Kernel-Multicast entfernt. * MC-Downgrade. * Etherwake gefixt. * Shutdown-Balken umgekehrt. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@216 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -26,7 +26,7 @@ int main(int argc, char *argv[])
|
||||
if (!(initsetuid()))
|
||||
exit(1);
|
||||
|
||||
snprintf(command, BUFFER_SIZE-1, "/usr/bin/ether-wake -i %s %s", argv[2], argv[1]);
|
||||
snprintf(command, BUFFER_SIZE-1, "/usr/sbin/etherwake -i %s %s", argv[2], argv[1]);
|
||||
safe_system(command);
|
||||
|
||||
return(0);
|
||||
|
||||
@@ -13,46 +13,46 @@ progressbar()
|
||||
echo "show $(( 65534 * $1 / 9 ))" > /proc/splash
|
||||
}
|
||||
# Set bootsplash
|
||||
progressbar 0
|
||||
progressbar 9
|
||||
echo "silent" > /proc/splash
|
||||
|
||||
echo "Stopping the RED interface..."
|
||||
progressbar 1
|
||||
progressbar 8
|
||||
/etc/rc.d/rc.red stop 2>/dev/null
|
||||
/etc/rc.d/rc.red clear 2>/dev/null
|
||||
|
||||
echo "Shutting down..."
|
||||
progressbar 2
|
||||
progressbar 7
|
||||
sleep 3
|
||||
|
||||
echo "Saving the clock"
|
||||
progressbar 3
|
||||
progressbar 6
|
||||
/sbin/hwclock --systohc
|
||||
|
||||
echo "Sending all processes the TERM signal..."
|
||||
progressbar 4
|
||||
progressbar 5
|
||||
/sbin/killall5 -15
|
||||
sleep 3
|
||||
|
||||
echo "Sending all processes the KILL signal..."
|
||||
progressbar 5
|
||||
progressbar 4
|
||||
/sbin/killall5 -9
|
||||
sleep 3
|
||||
|
||||
echo "Turning off swap"
|
||||
progressbar 6
|
||||
progressbar 3
|
||||
swapoff -a
|
||||
|
||||
echo "Unmounting others"
|
||||
progressbar 7
|
||||
progressbar 2
|
||||
umount -n -a
|
||||
|
||||
echo "Unmounting root"
|
||||
progressbar 8
|
||||
progressbar 1
|
||||
mount -n -o remount,ro /
|
||||
|
||||
# Send nice shutdown beep now
|
||||
progressbar 9
|
||||
progressbar 0
|
||||
/usr/bin/beep -l 75 -f 3000
|
||||
/usr/bin/beep -l 75 -f 2000
|
||||
/usr/bin/beep -l 75 -f 1000
|
||||
|
||||
Reference in New Issue
Block a user