Initscripts: add udev guard to all devices scripts
authorMichael Lauer <mickey@vanille-media.de>
Mon, 11 Jul 2005 08:56:29 +0000 (08:56 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 11 Jul 2005 08:56:29 +0000 (08:56 +0000)
14 files changed:
packages/initscripts/initscripts-1.0/akita/devices
packages/initscripts/initscripts-1.0/beagle/devices
packages/initscripts/initscripts-1.0/c7x0/devices
packages/initscripts/initscripts-1.0/collie/devices
packages/initscripts/initscripts-1.0/h3600/devices
packages/initscripts/initscripts-1.0/h3900/devices
packages/initscripts/initscripts-1.0/jornada56x/devices
packages/initscripts/initscripts-1.0/jornada7xx/devices
packages/initscripts/initscripts-1.0/poodle/devices
packages/initscripts/initscripts-1.0/simpad/devices
packages/initscripts/initscripts-1.0/spitz/devices
packages/initscripts/initscripts-1.0/tosa/devices
packages/initscripts/initscripts-1.0/uml/devices
packages/initscripts/initscripts_1.0.bb

index b3a3323..083090e 100755 (executable)
@@ -5,6 +5,11 @@
 
 . /etc/default/rcS
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
 if test -e /dev/.devfsd
 then
        if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi
index f80b7f9..04fffba 100755 (executable)
@@ -5,6 +5,11 @@
 
 . /etc/default/rcS
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
 if test -e /dev/.devfsd
 then
        if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi
index b3a3323..083090e 100755 (executable)
@@ -5,6 +5,11 @@
 
 . /etc/default/rcS
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
 if test -e /dev/.devfsd
 then
        if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi
index 7413e45..9d16244 100755 (executable)
@@ -5,6 +5,11 @@
 
 . /etc/default/rcS
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
 if test -e /dev/.devfsd
 then
        if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi
index d7b346a..0e59229 100755 (executable)
@@ -3,6 +3,11 @@
 # Devfs handling script.  Since we arent running devfsd due to various reasons
 # which I will not lay out here, we need to create some links for compatibility.
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
     test -n "$VERBOSE" && echo -n "Setting up device links for devfs: "
     (
     ln -s /dev/vc/0 /dev/tty0
index d7b346a..0e59229 100755 (executable)
@@ -3,6 +3,11 @@
 # Devfs handling script.  Since we arent running devfsd due to various reasons
 # which I will not lay out here, we need to create some links for compatibility.
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
     test -n "$VERBOSE" && echo -n "Setting up device links for devfs: "
     (
     ln -s /dev/vc/0 /dev/tty0
index d7b346a..0e59229 100755 (executable)
@@ -3,6 +3,11 @@
 # Devfs handling script.  Since we arent running devfsd due to various reasons
 # which I will not lay out here, we need to create some links for compatibility.
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
     test -n "$VERBOSE" && echo -n "Setting up device links for devfs: "
     (
     ln -s /dev/vc/0 /dev/tty0
index d7b346a..0e59229 100755 (executable)
@@ -3,6 +3,11 @@
 # Devfs handling script.  Since we arent running devfsd due to various reasons
 # which I will not lay out here, we need to create some links for compatibility.
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
     test -n "$VERBOSE" && echo -n "Setting up device links for devfs: "
     (
     ln -s /dev/vc/0 /dev/tty0
index 7413e45..9d16244 100755 (executable)
@@ -5,6 +5,11 @@
 
 . /etc/default/rcS
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
 if test -e /dev/.devfsd
 then
        if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi
index d7b346a..0e59229 100644 (file)
@@ -3,6 +3,11 @@
 # Devfs handling script.  Since we arent running devfsd due to various reasons
 # which I will not lay out here, we need to create some links for compatibility.
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
     test -n "$VERBOSE" && echo -n "Setting up device links for devfs: "
     (
     ln -s /dev/vc/0 /dev/tty0
index b3a3323..083090e 100755 (executable)
@@ -5,6 +5,11 @@
 
 . /etc/default/rcS
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
 if test -e /dev/.devfsd
 then
        if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi
index 5ae1558..61cfd9d 100755 (executable)
@@ -5,6 +5,11 @@
 
 . /etc/default/rcS
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
 if test -e /dev/.devfsd
 then
        if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi
index fc1d967..d6459c1 100755 (executable)
@@ -5,6 +5,11 @@
 
 . /etc/default/rcS
 
+# exit without doing anything if udev is active
+if test -e /dev/.udevdb; then
+    exit 0
+fi
+
 if test -e /dev/.devfsd
 then
        if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi
index 058dc3d..8c735b7 100644 (file)
@@ -6,7 +6,7 @@ DEPENDS = "makedevs"
 DEPENDS_openzaurus = "makedevs virtual/kernel"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r46"
+PR = "r47"
 
 SRC_URI = "file://halt \
            file://ramdisk \
@@ -30,8 +30,8 @@ SRC_URI = "file://halt \
            file://umountnfs.sh \
            file://sysfs.sh \
            file://device_table.txt \
-          file://corgikeymap-2.6.map \
-          file://tosakeymap-2.6.map"
+           file://corgikeymap-2.6.map \
+           file://tosakeymap-2.6.map"
 
 SRC_URI_append_arm = " file://alignment.sh"
 SRC_URI_append_openzaurus = " file://checkversion"