]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/firstsetup
c3cf427c4f1f519996b4cbb8bb100ece68a9cba0
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / firstsetup
1 #!/bin/bash
2 /usr/local/sbin/setup /dev/tty2 INSTALL
3 /usr/bin/clear
4 echo "Reboot ..."
5 echo "Sending all processes the TERM signal..."
6 /sbin/killall5 -15
7 sleep 3
8 echo "Sending all processes the KILL signal..."
9 /sbin/killall5 -15
10 sleep 3
11 echo "Unmounting Filesystems..."
12 /bin/umount /sys
13 /bin/umount /dev/pts
14 /bin/umount /proc
15 /bin/umount /boot
16 /bin/umount /var/log/rrd
17 /bin/umount /var/lock
18 /bin/umount /var/run
19 /bin/umount /var
20 rm -f /etc/rc.d/rcsysinit.d/S75firstsetup \
21 && /bin/mount -n -o remount,ro / \
22 && /sbin/reboot -f