# /etc/inittab # # Copyright (C) 2001 Erik Andersen # # Note: BusyBox init doesn't support runlevels. The runlevels field is # completely ignored by BusyBox init. If you want runlevels, use # sysvinit. # # Format for each entry: ::: # # 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 si1:12345:sysinit:/bin/mount -o remount,rw / si2:12345:sysinit:/bin/mount -t proc proc /proc si3:12345:sysinit:/bin/mount -a si4:2345:sysinit:/bin/hostname -F /etc/hostname si5:2345:sysinit:/sbin/ifconfig lo 127.0.0.1 up si6:2345:sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo si7:12345:sysinit:/sbin/swapon -a si8:12345:sysinit:/bin/mount -t usbfs usbfs /proc/bus/usb # now run any rc scripts si:12345:sysinit:/etc/init.d/rcS id:2:initdefault: # Put a getty on the serial port tty1:12345:respawn:/sbin/getty -L ttyS0 115200 vt100 # Logging junk lg1:12345:sysinit:/bin/touch /var/log/messages lg2:12345:respawn:/sbin/syslogd -n -m 0 lg3:12345:respawn:/sbin/klogd -n #tty3:12345:respawn:/usr/bin/tail -f /var/log/messages # Stuff to do for the 3-finger salute ca::ctrlaltdel:/sbin/reboot # Stuff to do before rebooting sh0::shutdown:/bin/sync sh1::shutdown:/usr/bin/killall klogd sh2::shutdown:/usr/bin/killall syslogd sh3::shutdown:/bin/umount -a -r sh4::shutdown:/sbin/swapoff -a