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.

33 lines
920 B

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