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
|
|
|
|
|
|
|
|
# Put a getty on the serial port
|
|
|
|
#console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
|
|
|
|
::respawn:-/bin/bash
|
|
|
|
|
|
|
|
# Stuff to do for the 3-finger salute
|
|
|
|
#::ctrlaltdel:/sbin/reboot
|
|
|
|
|
|
|
|
# Stuff to do before rebooting
|
|
|
|
::shutdown:/etc/init.d/rcK
|
|
|
|
::shutdown:/bin/umount -a -r
|