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.

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