summaryrefslogtreecommitdiffstats
path: root/meta/packages/initscripts/initscripts-1.0/jornada7xx/devices
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/initscripts/initscripts-1.0/jornada7xx/devices')
-rwxr-xr-xmeta/packages/initscripts/initscripts-1.0/jornada7xx/devices81
1 files changed, 57 insertions, 24 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/jornada7xx/devices b/meta/packages/initscripts/initscripts-1.0/jornada7xx/devices
index 0e59229225..422336a345 100755
--- a/meta/packages/initscripts/initscripts-1.0/jornada7xx/devices
+++ b/meta/packages/initscripts/initscripts-1.0/jornada7xx/devices
@@ -3,35 +3,68 @@
3# Devfs handling script. Since we arent running devfsd due to various reasons 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. 4# which I will not lay out here, we need to create some links for compatibility.
5 5
6. /etc/default/rcS
7
6# exit without doing anything if udev is active 8# exit without doing anything if udev is active
7if test -e /dev/.udevdb; then 9if test -e /dev/.udevdb; then
8 exit 0 10 exit 0
9fi 11fi
10 12
11 test -n "$VERBOSE" && echo -n "Setting up device links for devfs: " 13if test -e /dev/.devfsd
12 ( 14then
13 ln -s /dev/vc/0 /dev/tty0 15 if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi
14 ln -s /dev/vc/1 /dev/tty1 16 ln -s /dev/touchscreen/0 /dev/ts
15 ln -s /dev/vc/2 /dev/tty2 17 ln -s /dev/touchscreen/0raw /dev/tsraw
16 ln -s /dev/vc/3 /dev/tty3 18 ln -s /dev/vc/0 /dev/tty0
17 ln -s /dev/vc/4 /dev/tty4 19 ln -s /dev/vc/1 /dev/tty1
18 ln -s /dev/vc/5 /dev/tty5 20 ln -s /dev/vc/2 /dev/tty2
19 ln -s /dev/fb/0 /dev/fb0 21 ln -s /dev/vc/3 /dev/tty3
20 # ln -s /dev/tts/0 /dev/ttySA0 22 ln -s /dev/vc/4 /dev/tty4
21 # ln -s /dev/tts/1 /dev/ttySA1 23 ln -s /dev/vc/5 /dev/tty5
22 # ln -s /dev/tts/2 /dev/ttySA2 24 ln -s /dev/fb/0 /dev/fb0
23 25# ln -s /dev/tts/0 /dev/ttySA0
24 ln -s /dev/sound/dsp /dev/dsp 26# ln -s /dev/tts/1 /dev/ttySA1
25 ln -s /dev/sound/mixer /dev/mixer 27# ln -s /dev/tts/2 /dev/ttySA2
26 28
27 ln -s /dev/v4l/video0 /dev/video0 29 ln -s /dev/sound/dsp /dev/dsp
28 ln -s /dev/v4l/video0 /dev/video 30 ln -s /dev/sound/mixer /dev/mixer
29 ln -s /dev/misc/rtc /dev/rtc
30 ln -s /dev/misc/apm_bios /dev/apm_bios
31 31
32 ## need this so that ppp will autoload the ppp modules 32 ln -s /dev/v4l/video0 /dev/video0
33 mknod /dev/ppp c 108 0 33 ln -s /dev/v4l/video0 /dev/video
34 ) > /dev/null 2>&1 34 ln -s /dev/misc/rtc /dev/rtc
35 35
36 ## need this so that ppp will autoload the ppp modules
37 mknod /dev/ppp c 108 0
38
39 if test "$VERBOSE" != "no"; then echo "done"; fi
40else
41 if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi
42 mount -t ramfs ramfs /dev || mount -t tmpfs ramfs /dev
43 if test $? -ne 0; then
44 if test "$VERBOSE" != "no"; then echo "failed"; fi
45 else
46 if test "$VERBOSE" != "no"; then echo "done"; fi
47 fi
48 if test "$VERBOSE" != "no"; then echo -n "Populating /dev: "; fi
49 cd /
50 mkdir -p dev/input
51 mknod /dev/input/ts0 c 13 65
52 mknod /dev/ttySC1 c 9 204
53 mknod /dev/irda0 c 10 204
54 mkdir -p dev/msys
55 mkdir -p dev/pts
56 mkdir -p dev/vc
57 for i in 0 1 2 3 4 5 6 7 8 9; do
58 ln -s /dev/tty$i /dev/vc/$i
59 done
60 ln -sf /proc/self/fd /dev/fd
61 ln -sf /proc/kcore /dev/core
62 /sbin/makedevs -r / -D /etc/device_table
63 if test $? -ne 0; then
64 if test "$VERBOSE" != "no"; then echo "failed"; fi
65 else
66 if test "$VERBOSE" != "no"; then echo "done"; fi
67 fi
68fi
36 69
37 test -n "$VERBOSE" && echo "done" 70exit 0