initscripts: don't run the devices (devfs) script when udev is active, update for...
authorPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 25 Aug 2006 10:09:02 +0000 (10:09 +0000)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 25 Aug 2006 10:09:02 +0000 (10:09 +0000)
packages/initscripts/initscripts-1.0/checkroot.sh
packages/initscripts/initscripts-1.0/devices
packages/initscripts/initscripts_1.0.bb

index 8255038..0283e1a 100755 (executable)
@@ -148,7 +148,12 @@ fi
 #      remount the rootfs rw but do not try to change mtab because it
 #      is on a ro fs until the remount succeeded. Then clean up old mtabs
 #      and finally write the new mtab.
+#      This part is only needed if the rootfs was mounted ro.
 #
+if [ $(grep rootfs /proc/mounts | awk '{print $4}') = rw ]; then
+       exit 0
+fi
+echo "Remounting root file system..."
 mount -n -o remount,$rootmode /
 if test "$rootmode" = rw
 then
index 28fb71f..fb0f851 100755 (executable)
@@ -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
 
index 0d14403..29747d4 100644 (file)
@@ -6,7 +6,7 @@ DEPENDS = "makedevs"
 DEPENDS_openzaurus = "makedevs virtual/kernel"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r74"
+PR = "r75"
 
 SRC_URI = "file://halt \
            file://ramdisk \