Last change
on this file since 3754 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
Rev | Line | |
---|
[3320] | 1 | #!/bin/sh
|
---|
| 2 | #
|
---|
| 3 | # makedev.sh - creates device files for a busybox boot floppy image
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | # we do our work in the dev/ directory
|
---|
| 7 | if [ -z "$1" ]; then
|
---|
| 8 | echo "usage: `basename $0` path/to/dev/dir"
|
---|
| 9 | exit 1
|
---|
| 10 | fi
|
---|
| 11 |
|
---|
| 12 | cd $1
|
---|
| 13 |
|
---|
| 14 |
|
---|
| 15 | # miscellaneous one-of-a-kind stuff
|
---|
| 16 | mknod console c 5 1
|
---|
| 17 | mknod full c 1 7
|
---|
| 18 | mknod kmem c 1 2
|
---|
| 19 | mknod mem c 1 1
|
---|
| 20 | mknod null c 1 3
|
---|
| 21 | mknod port c 1 4
|
---|
| 22 | mknod random c 1 8
|
---|
| 23 | mknod urandom c 1 9
|
---|
| 24 | mknod zero c 1 5
|
---|
| 25 | ln -s /proc/kcore core
|
---|
| 26 |
|
---|
| 27 | # IDE HD devs
|
---|
| 28 | # note: not going to bother creating all concievable partitions; you can do
|
---|
| 29 | # that yourself as you need 'em.
|
---|
| 30 | mknod hda b 3 0
|
---|
| 31 | mknod hdb b 3 64
|
---|
| 32 | mknod hdc b 22 0
|
---|
| 33 | mknod hdd b 22 64
|
---|
| 34 |
|
---|
| 35 | # loop devs
|
---|
| 36 | for i in `seq 0 7`; do
|
---|
| 37 | mknod loop$i b 7 $i
|
---|
| 38 | done
|
---|
| 39 |
|
---|
| 40 | # ram devs
|
---|
| 41 | for i in `seq 0 9`; do
|
---|
| 42 | mknod ram$i b 1 $i
|
---|
| 43 | done
|
---|
| 44 | ln -s ram1 ram
|
---|
| 45 |
|
---|
| 46 | # ttys
|
---|
| 47 | mknod tty c 5 0
|
---|
| 48 | for i in `seq 0 9`; do
|
---|
| 49 | mknod tty$i c 4 $i
|
---|
| 50 | done
|
---|
| 51 |
|
---|
| 52 | # virtual console screen devs
|
---|
| 53 | for i in `seq 0 9`; do
|
---|
| 54 | mknod vcs$i b 7 $i
|
---|
| 55 | done
|
---|
| 56 | ln -s vcs0 vcs
|
---|
| 57 |
|
---|
| 58 | # virtual console screen w/ attributes devs
|
---|
| 59 | for i in `seq 0 9`; do
|
---|
| 60 | mknod vcsa$i b 7 $((128 + i))
|
---|
| 61 | done
|
---|
| 62 | ln -s vcsa0 vcsa
|
---|
Note:
See
TracBrowser
for help on using the repository browser.