mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

  1. #!/bin/bash
  2. mount -t proc none /proc
  3. mount -t tmpfs none /tmp
  4. cd /dev ; rm -f fd
  5. ln -sf /proc/kcore core
  6. ln -sf /proc/self/fd fd
  7. ln -sf fd/0 stdin
  8. ln -sf fd/1 stdout
  9. ln -sf fd/2 stderr
  10. ln -sf misc/psaux mouse
  11. cd /
  12. exec < /dev/console > /dev/console 2> /dev/console ; cd /
  13. export PATH="/sbin:/bin:/usr/sbin:/usr/bin"
  14. cat << EOF
  15. _ __ __ __ __ _ ______
  16. | | / /__ / /________ ____ ___ ___ / /_____ / /| | / / __ \\
  17. | | /| / / _ \/ / ___/ __ \/ __ \`__ \/ _ \ / __/ __ \ / / | | / / /_/ /
  18. | |/ |/ / __/ / /__/ /_/ / / / / / / __/ / /_/ /_/ / / /__| |/ / ____/
  19. |__/|__/\___/_/\___/\____/_/ /_/ /_/\___/ \__/\____/ /_____/___/_/
  20. A lot of fun wishes:
  21. The LVP Team:
  22. -Benjamin 'blindcoder' Schieder
  23. EOF
  24. ttydevs="vc/2 vc/3"
  25. for x in $ttydevs ; do
  26. ( ( while : ; do agetty -i 38400 $x -n -l /sbin/login-shell ; done ) & )
  27. done
  28. for x in /etc/lvp/*.sh ; do
  29. if [ -f "$x" ] ; then
  30. echo ; echo "Running $x ..." ; sh $x
  31. echo "Setup script $x finished."
  32. fi
  33. done
  34. agetty -i 38400 vc/1 -n -l /sbin/startlvp &
  35. exec < /dev/null > /dev/null 2>&1
  36. while : ; do sleep 1 ; done