Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | # This is run first except when booting in single-user mode. |
| 2 | |
| 3 | # Startup the system |
| 4 | null::sysinit:/bin/mount -t proc proc /proc |
| 5 | null::sysinit:/bin/mount -t sysfs sysfs /sys |
| 6 | null::sysinit:/bin/mount -t devtmpfs devtmpfs /dev |
| 7 | null::sysinit:/bin/mount -o remount,rw / |
| 8 | null::sysinit:/bin/mkdir -p /dev/pts |
| 9 | null::sysinit:/bin/mount -t devpts devpts /dev/pts |
| 10 | null::sysinit:/bin/mount -a |
| 11 | |
| 12 | ::sysinit:/etc/init.d/rcS |
| 13 | |
| 14 | # Stuff to do before rebooting |
| 15 | ::ctrlaltdel:/sbin/reboot |
| 16 | ::shutdown:/etc/init.d/rcK |
| 17 | ::shutdown:/sbin/swapoff -a |
| 18 | ::shutdown:/bin/umount -a -r |
| 19 | |
| 20 | # Stuff to do when restarting the init process |
| 21 | ::restart:/sbin/init |
| 22 | |
| 23 | # set hostname |
| 24 | null::sysinit:/bin/busybox hostname -F /etc/hostname |