house cleaning
[openwrt.git] / obsolete-buildroot / sources / target_skeleton / etc / inittab
1 # /etc/inittab
2 #
3 # Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
4 #
5 # Note: BusyBox init doesn't support runlevels. The runlevels field is
6 # completely ignored by BusyBox init. If you want runlevels, use
7 # sysvinit.
8 #
9 # Format for each entry: <id>:<runlevels>:<action>:<process>
10 #
11 # id == tty to run on, or empty for /dev/console
12 # runlevels == ignored
13 # action == one of sysinit, respawn, askfirst, wait, and once
14 # process == program to run
15
16 # Startup the system
17 null::sysinit:/bin/mount -o remount,rw /
18 null::sysinit:/bin/mount -t proc proc /proc
19 null::sysinit:/bin/mount -a
20 null::sysinit:/bin/hostname -F /etc/hostname
21 null::sysinit:/sbin/ifconfig lo 127.0.0.1 up
22 null::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
23 # now run any rc scripts
24 ::sysinit:/etc/init.d/rcS
25
26 # Set up a couple of getty's
27 tty1::respawn:/sbin/getty 38400 tty1
28 tty2::respawn:/sbin/getty 38400 tty2
29
30 # Put a getty on the serial port
31 #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100
32
33 # Logging junk
34 null::sysinit:/bin/touch /var/log/messages
35 null::respawn:/sbin/syslogd -n -m 0
36 null::respawn:/sbin/klogd -n
37 tty3::respawn:/usr/bin/tail -f /var/log/messages
38
39 # Stuff to do for the 3-finger salute
40 ::ctrlaltdel:/sbin/reboot
41
42 # Stuff to do before rebooting
43 null::shutdown:/usr/bin/killall klogd
44 null::shutdown:/usr/bin/killall syslogd
45 null::shutdown:/bin/umount -a -r
46 null::shutdown:/sbin/swapoff -a
47
This page took 0.04095 seconds and 5 git commands to generate.