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.

37 lines
781 B

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