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.

30 lines
889 B

  1. #!/bin/bash
  2. mount -n -t proc none /proc
  3. mount -n -t tmpfs none /tmp
  4. cat /proc/mounts > /etc/fstab
  5. cat /proc/mounts > /etc/mtab
  6. ln -sf /proc/kcore /dev/core
  7. ln -sf /proc/self/fd /dev/fd
  8. ln -sf fd/0 /dev/stdin
  9. ln -sf fd/1 /dev/stdout
  10. ln -sf fd/2 /dev/stderr
  11. hwscan > /etc/hwscan.sh
  12. sh /etc/hwscan.sh 2> /dev/null
  13. echo
  14. echo " *************************************"
  15. echo " ** ROCK Router Linux **"
  16. echo " ** http://www.rocklinux.org/ **"
  17. echo " *************************************"
  18. echo
  19. for x in vc/{1,2,3,4,5,6} ; do
  20. ( ( while : ; do agetty -i 38400 $x -n -l /bin/login-shell ; done ) & )
  21. done
  22. exec < /dev/null > /dev/null 2>&1
  23. while : ; do sleep 1 ; done