OpenSDE Framework (without history before r20070)
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.

169 lines
3.0 KiB

  1. #!/bin/sh
  2. #
  3. # Script for creating a minimalistic /dev directory (needed if running a
  4. # kernel without devfs support).
  5. #
  6. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  7. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  8. #
  9. # T2 SDE: misc/archive/mini-makedevs.sh
  10. # Copyright (C) 2004 - 2006 The T2 SDE Project
  11. # Copyright (C) 1998 - 2003 Clifford Wolf
  12. #
  13. # More information can be found in the files COPYING and README.
  14. #
  15. # This program is free software; you can redistribute it and/or modify
  16. # it under the terms of the GNU General Public License as published by
  17. # the Free Software Foundation; version 2 of the License. A copy of the
  18. # GNU General Public License can be found in the file COPYING.
  19. # --- T2-COPYRIGHT-NOTE-END ---
  20. mknod mem c 1 1
  21. mknod kmem c 1 2
  22. mknod null c 1 3
  23. mknod port c 1 4
  24. mknod zero c 1 5
  25. mknod core c 1 6
  26. mknod full c 1 7
  27. mknod random c 1 8
  28. mknod urandom c 1 9
  29. mknod ram0 b 1 0
  30. mknod ram1 b 1 1
  31. mknod ram2 b 1 2
  32. mknod ram3 b 1 3
  33. mknod initrd b 1 250
  34. mknod ptyp0 c 2 0
  35. mknod ptyp1 c 2 1
  36. mknod ptyp2 c 2 2
  37. mknod ptyp3 c 2 3
  38. mknod ptyp4 c 2 4
  39. mknod ptyp5 c 2 5
  40. mknod ptyp6 c 2 6
  41. mknod ptyp7 c 2 7
  42. mknod fd0 b 2 0
  43. mknod fd1 b 2 1
  44. mknod ttyp0 c 3 0
  45. mknod ttyp1 c 3 1
  46. mknod ttyp2 c 3 2
  47. mknod ttyp3 c 3 3
  48. mknod ttyp4 c 3 4
  49. mknod ttyp5 c 3 5
  50. mknod ttyp6 c 3 6
  51. mknod ttyp7 c 3 7
  52. mknod hda b 3 0
  53. mknod hda1 b 3 1
  54. mknod hda2 b 3 2
  55. mknod hda3 b 3 3
  56. mknod hda4 b 3 4
  57. mknod hda5 b 3 5
  58. mknod hda6 b 3 6
  59. mknod hda7 b 3 7
  60. mknod hda8 b 3 8
  61. mknod hdb b 3 64
  62. mknod hdb1 b 3 65
  63. mknod hdb2 b 3 66
  64. mknod hdb3 b 3 67
  65. mknod hdb4 b 3 68
  66. mknod hdb5 b 3 69
  67. mknod hdb6 b 3 70
  68. mknod hdb7 b 3 71
  69. mknod hdb8 b 3 72
  70. mknod tty0 c 4 0
  71. mknod tty1 c 4 1
  72. mknod tty2 c 4 2
  73. mknod tty3 c 4 3
  74. mknod tty4 c 4 4
  75. mknod tty5 c 4 5
  76. mknod tty6 c 4 6
  77. mknod tty7 c 4 7
  78. mkdir -p vc
  79. ln -sf ../tty1 vc/1
  80. ln -sf ../tty2 vc/2
  81. ln -sf ../tty3 vc/3
  82. ln -sf ../tty4 vc/4
  83. ln -sf ../tty5 vc/5
  84. ln -sf ../tty6 vc/6
  85. ln -sf ../tty7 vc/7
  86. mknod ttyS0 c 4 64
  87. mknod ttyS1 c 4 65
  88. mknod ttyS2 c 4 66
  89. mknod ttyS3 c 4 67
  90. mknod tty c 5 0
  91. mknod console c 5 1
  92. mknod ptmx c 5 2
  93. mknod cua0 c 5 64
  94. mknod cua1 c 5 65
  95. mknod cua2 c 5 66
  96. mknod cua3 c 5 67
  97. mknod lp0 c 6 0
  98. mknod lp1 c 6 0
  99. mknod vcs c 7 0
  100. mknod vcs1 c 7 1
  101. mknod vcs2 c 7 2
  102. mknod vcs3 c 7 3
  103. mknod vcs4 c 7 4
  104. mknod vcs5 c 7 5
  105. mknod vcs6 c 7 6
  106. mknod vcs7 c 7 7
  107. mknod loop0 b 7 0
  108. mknod loop1 b 7 1
  109. mknod loop2 b 7 2
  110. mknod loop3 b 7 3
  111. mknod sda b 8 0
  112. mknod sda1 b 8 1
  113. mknod sda2 b 8 2
  114. mknod sda3 b 8 3
  115. mknod sda4 b 8 4
  116. mknod sda5 b 8 5
  117. mknod sda6 b 8 6
  118. mknod sda7 b 8 7
  119. mknod sda8 b 8 8
  120. mknod sdb b 8 16
  121. mknod sdb1 b 8 17
  122. mknod sdb2 b 8 18
  123. mknod sdb3 b 8 19
  124. mknod sdb4 b 8 20
  125. mknod sdb5 b 8 21
  126. mknod sdb6 b 8 22
  127. mknod sdb7 b 8 23
  128. mknod sdb8 b 8 24
  129. mknod psaux c 10 1
  130. mknod rtc c 10 135
  131. mknod nvram c 10 144
  132. mknod sr0 b 11 0
  133. mknod sr1 b 11 1
  134. mknod sg0 c 21 0
  135. mknod sg1 c 21 1
  136. mknod sg2 c 21 2
  137. mknod sg3 c 21 3
  138. mknod fb0 c 29 0
  139. mknod fb1 c 29 32
  140. mkdir -p pts
  141. rm -f fd
  142. ln -sf /proc/kcore core
  143. ln -sf /proc/self/fd fd
  144. ln -sf fd/0 stdin
  145. ln -sf fd/1 stdout
  146. ln -sf fd/2 stderr