2020-07-11 23:08:30 +00:00
|
|
|
# /etc/inittab
|
2024-06-18 08:45:21 +00:00
|
|
|
|
2020-07-11 23:08:30 +00:00
|
|
|
# Format for each entry: <id>:<runlevels>:<action>:<process>
|
|
|
|
#
|
|
|
|
# id == tty to run on, or empty for /dev/console
|
|
|
|
# runlevels == ignored
|
|
|
|
# action == one of sysinit, respawn, askfirst, wait, and once
|
|
|
|
# process == program to run
|
|
|
|
|
|
|
|
# Startup the system
|
2024-06-18 08:45:21 +00:00
|
|
|
::sysinit:/bin/mount -t devtmpfs devtmpfs /dev
|
2024-06-21 03:42:57 +00:00
|
|
|
::sysinit:/bin/mkdir -p /proc /run /dev/pts /dev/shm /sys
|
|
|
|
::sysinit:/bin/mount -t sysfs sysfs /sys
|
2020-07-11 23:08:30 +00:00
|
|
|
::sysinit:/bin/mount -t proc proc /proc
|
|
|
|
::sysinit:/bin/mount -o remount,rw /
|
|
|
|
null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
|
|
|
|
null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
|
|
|
|
null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
|
|
|
|
null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
|
|
|
|
# now run any rc scripts
|
|
|
|
::sysinit:/etc/init.d/rcS
|
|
|
|
|
2024-09-28 11:52:27 +00:00
|
|
|
# Put shells on the serial terminal and console
|
|
|
|
console::respawn:-/bin/bash
|
|
|
|
ttyS0::respawn:-/bin/bash
|
2020-07-11 23:08:30 +00:00
|
|
|
::respawn:-/bin/bash
|
|
|
|
|
|
|
|
# Stuff to do for the 3-finger salute
|
2024-09-28 11:52:27 +00:00
|
|
|
::ctrlaltdel:/sbin/reboot
|
2020-07-11 23:08:30 +00:00
|
|
|
|
|
|
|
# Stuff to do before rebooting
|
|
|
|
::shutdown:/etc/init.d/rcK
|
|
|
|
::shutdown:/bin/umount -a -r
|