blob: e8ec2ab68ee6bbeca843bc96428ea96b48dc726e [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
Patrick Williamsc0f7c042017-02-23 20:41:17 -06004::sysinit:/bin/mount -t proc proc /proc
5::sysinit:/bin/mount -t sysfs sysfs /sys
6::sysinit:/bin/mount -t devtmpfs devtmpfs /dev
7::sysinit:/bin/mount -o remount,rw /
8::sysinit:/bin/mkdir -p /dev/pts
9::sysinit:/bin/mount -t devpts devpts /dev/pts
10::sysinit:/bin/mount -a
Andrew Geissler82c905d2020-04-13 13:39:40 -050011::sysinit:/sbin/swapon -a
12null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
13null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
14null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
15null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
16# set hostname
17null::sysinit:/bin/busybox hostname -F /etc/hostname
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050018::sysinit:/etc/init.d/rcS
19
20# Stuff to do before rebooting
Andrew Geissler82c905d2020-04-13 13:39:40 -050021#::ctrlaltdel:/sbin/reboot
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050022::shutdown:/etc/init.d/rcK
23::shutdown:/sbin/swapoff -a
24::shutdown:/bin/umount -a -r
25
26# Stuff to do when restarting the init process
27::restart:/sbin/init
28