inittab 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. # Startup the system
  16. ::sysinit:/bin/mount -t proc proc /proc
  17. ::sysinit:/bin/mount -o remount,rw /
  18. ::sysinit:/bin/mkdir -p /dev/pts /dev/shm
  19. ::sysinit:/bin/mount -a
  20. ::sysinit:/sbin/swapon -a
  21. null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
  22. null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
  23. null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
  24. null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
  25. ::sysinit:/bin/hostname -F /etc/hostname
  26. # now run any rc scripts
  27. ::sysinit:/etc/init.d/rcS
  28. # Put a getty on the serial port
  29. #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
  30. # Stuff to do for the 3-finger salute
  31. #::ctrlaltdel:/sbin/reboot
  32. # Stuff to do before rebooting
  33. ::shutdown:/etc/init.d/rcK
  34. ::shutdown:/sbin/swapoff -a
  35. ::shutdown:/bin/umount -a -r