Initscripts. Fix devices script for machine jornada6xx
authorKristoffer Ericson <kristoffer.ericson@gmail.com>
Sat, 26 Dec 2009 21:36:10 +0000 (22:36 +0100)
committerKristoffer Ericson <kristoffer.ericson@gmail.com>
Sat, 26 Dec 2009 21:36:10 +0000 (22:36 +0100)
Signed-off-by: Alex Ferguson <thoughtmonster@gmail.com>
Signed-off-by: Kristoffer Ericson <kristoffer.ericson@gmail.com>
recipes/initscripts/initscripts-1.0/jornada6xx/devices [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 5ca2a1c..b9e4628
@@ -6,7 +6,7 @@
 . /etc/default/rcS
 
 # exit without doing anything if udev is active
-if test -e /dev/.udevdb; then
+if test -e /dev/.udev -o -e /dev/.udevdb; then
        exit 0
 fi
 
@@ -32,7 +32,6 @@ then
 
        ## need this so that ppp will autoload the ppp modules
        mknod /dev/ppp c 108 0
-        
        if test "$VERBOSE" != "no"; then echo "done"; fi
 else
        if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi
@@ -44,17 +43,20 @@ else
        fi
        if test "$VERBOSE" != "no"; then echo -n "Populating /dev: "; fi
        cd /
-       mkdir -p dev/input
-        mknod /dev/input/ts0 c 13 128
-        mknod /dev/ttySC0 c 8 204
-       mknod /dev/ttySC1 c 9 204
-        mknod /dev/ttySC2 c 10 204
+
+        mknod /dev/ttySC0 c 204 8
+       mknod /dev/ttySC1 c 204 9
+        mknod /dev/ttySC2 c 204 10
        
-       mknod /dev/irda0  c 10 204
-        
+       mknod /dev/irda0  c 204 10
+
+       mknod /dev/rtc c 254 0
+
+       mkdir -p dev/input
        mkdir -p dev/msys
        mkdir -p dev/pts
        mkdir -p dev/vc
+       mkdir -p dev/snd
        for i in 0 1 2 3 4 5 6 7 8 9; do
                ln -s /dev/tty$i /dev/vc/$i
        done