-
Notifications
You must be signed in to change notification settings - Fork 16
/
inittab
33 lines (27 loc) · 1.01 KB
/
inittab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This is an example /etc/inittab file for "busybox init" which starts
# minirc on boot, creates TTY's and handles the killing of services on
# shutdown.
#
# NOTE: you have to replace /sbin/rc in this file with whatever path
# you placed the rc-script at.
# Start "rc init" on boot
::sysinit:/sbin/rc init
# Set up the TTY's 1 through 4
tty1::askfirst:/sbin/agetty -8 -s 38400 tty1 linux
tty2::respawn:/sbin/agetty -8 -s 38400 tty2 linux
tty3::respawn:/sbin/agetty -8 -s 38400 tty3 linux
tty4::respawn:/sbin/agetty -8 -s 38400 tty4 linux
# Shutdown when pressing CTRL+ALT+DEL (disabled by default)
#::ctrlaltdel:/bin/kill -USR2 1
# Stop all services on shutdown
::shutdown:/sbin/rc shutdown
# Killing everything on shutdown
::shutdown:echo :: sending SIGTERM to all
::shutdown:/bin/kill -s TERM -1
::shutdown:sleep 1
::shutdown:echo :: sending SIGKILL to all
::shutdown:/bin/kill -s KILL -1
# Unmount everything on shutdown
::shutdown:echo :: unmounting everything
::shutdown:/bin/umount -a -r
::shutdown:/bin/mount -o remount,ro /