blob: bfec4a77437224a987fed13eb5a14123bf956eb3 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001# This is run first except when booting in single-user mode.
2
3# Startup the system
4null::sysinit:/bin/mount -t proc proc /proc
5null::sysinit:/bin/mount -t sysfs sysfs /sys
6null::sysinit:/bin/mount -t devtmpfs devtmpfs /dev
7null::sysinit:/bin/mount -o remount,rw /
8null::sysinit:/bin/mkdir -p /dev/pts
9null::sysinit:/bin/mount -t devpts devpts /dev/pts
10null::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
24null::sysinit:/bin/busybox hostname -F /etc/hostname