Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. #
  2. # Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
  3. #
  4. # Note: BusyBox init doesn't support runlevels. The runlevels field is
  5. # completely ignored by BusyBox init. If you want runlevels, use
  6. # sysvinit.
  7. #
  8. # Format for each entry: <id>:<runlevels>:<action>:<process>
  9. #
  10. # id == tty to run on, or empty for /dev/console
  11. # runlevels == ignored
  12. # action == one of sysinit, respawn, askfirst, wait, and once
  13. # process == program to run
  14.  
  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.  
  29. # Put a getty on the serial port
  30. console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
  31. tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console
  32.  
  33. # Stuff to do for the 3-finger salute
  34. #::ctrlaltdel:/sbin/reboot
  35.  
  36. # Stuff to do before rebooting
  37. ::shutdown:/etc/init.d/rcK
  38. ::shutdown:/sbin/swapoff -a
  39. ::shutdown:/bin/umount -a -r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement