mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
20 lines
506 B
Bash
20 lines
506 B
Bash
#!/bin/sh
|
|
echo "Shutting down..."
|
|
echo "Sending all processes the TERM signal..."
|
|
/sbin/killall5 -15
|
|
sleep 3
|
|
echo "Sending all processes the KILL signal..."
|
|
/sbin/killall5 -9
|
|
sleep 3
|
|
echo "Unmounting /cdrom, /harddisk/boot, /harddisk/var/log and /harddisk"
|
|
/sbin/umount /cdrom
|
|
/sbin/umount /harddisk/boot
|
|
/sbin/umount /harddisk/var/log
|
|
/sbin/umount /harddisk
|
|
echo "Unmounting /proc"
|
|
/sbin/umount /proc/bus/usb
|
|
/sbin/umount /proc
|
|
echo "Unmounting root"
|
|
/sbin/mount -n -o remount,ro /
|
|
/sbin/reboot -i -d -p
|