3 # Devfs handling script. Since we arent running devfsd due to various reasons
4 # which I will not lay out here, we need to create some links for compatibility.
8 # exit without doing anything if udev is active
9 if test -e /dev/.udevdb; then
13 if test -e /dev/.devfsd
15 if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi
16 ln -s /dev/touchscreen/0 /dev/ts
17 ln -s /dev/touchscreen/0raw /dev/tsraw
18 ln -s /dev/vc/0 /dev/tty0
19 ln -s /dev/vc/1 /dev/tty1
20 ln -s /dev/vc/2 /dev/tty2
21 ln -s /dev/vc/3 /dev/tty3
22 ln -s /dev/vc/4 /dev/tty4
23 ln -s /dev/vc/5 /dev/tty5
24 ln -s /dev/fb/0 /dev/fb0
25 # ln -s /dev/tts/0 /dev/ttySA0
26 # ln -s /dev/tts/1 /dev/ttySA1
27 # ln -s /dev/tts/2 /dev/ttySA2
29 ln -s /dev/sound/dsp /dev/dsp
30 ln -s /dev/sound/mixer /dev/mixer
32 ln -s /dev/v4l/video0 /dev/video0
33 ln -s /dev/v4l/video0 /dev/video
34 ln -s /dev/misc/rtc /dev/rtc
36 ## need this so that ppp will autoload the ppp modules
37 mknod /dev/ppp c 108 0
38 if test "$VERBOSE" != "no"; then echo "done"; fi
40 if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi
41 mount -t ramfs ramfs /dev || mount -t tmpfs ramfs /dev
42 if test $? -ne 0; then
43 if test "$VERBOSE" != "no"; then echo "failed"; fi
45 if test "$VERBOSE" != "no"; then echo "done"; fi
47 if test "$VERBOSE" != "no"; then echo -n "Populating /dev: "; fi
52 for i in 0 1 2 3 4 5 6 7 8 9; do
53 ln -s /dev/tty$i /dev/vc/$i
55 ln -sf /dev/sharp_ts /dev/ts
56 ln -sf /dev/sharp_fl /dev/fl
57 ln -sf /proc/self/fd /dev/fd
58 ln -sf /proc/kcore /dev/core
59 /sbin/makedevs -r / -D /etc/device_table
60 if test $? -ne 0; then
61 if test "$VERBOSE" != "no"; then echo "failed"; fi
63 if test "$VERBOSE" != "no"; then echo "done"; fi