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.

39 lines
831 B

  1. #!/bin/bash
  2. mount -t proc none /proc
  3. mount -t tmpfs none /tmp
  4. mount -t devfs none /dev
  5. mount -t devpts none /dev/pts
  6. cd /dev ; rm -f fd
  7. ln -sf /proc/kcore core
  8. ln -sf /proc/self/fd fd
  9. ln -sf fd/0 stdin
  10. ln -sf fd/1 stdout
  11. ln -sf fd/2 stderr
  12. ln -sf misc/psaux mouse
  13. cd /
  14. exec < /dev/console > /dev/console 2> /dev/console ; cd /
  15. export PATH="/sbin:/bin:/usr/sbin:/usr/bin"
  16. for x in /etc/lvp/*.sh ; do
  17. if [ -f "${x}" ] ; then
  18. echo ; echo "Starting ${x##*/} ..." ; bash ${x} start
  19. echo "Setup script ${x##*/} finished."
  20. fi
  21. done
  22. /sbin/startlvp
  23. for x in /etc/lvp/*.sh ; do
  24. if [ -f "${x}" ] ; then
  25. echo ; echo "Stopping ${x##*/} ..." ; bash ${x} stop
  26. echo "Setup script ${x##*/} finished."
  27. fi
  28. done
  29. umount /dev/pts
  30. umount /dev
  31. umount /proc
  32. umount /tmp