]> git.openpandora.org Git - openembedded.git/commitdiff
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 8255038c328a9cd0521317500263f411c4792191..0283e1accaef52bd56c6493b013e6db5c2ad33fa 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 28fb71fe3f47a9fc32c20a0c0ad1b87748c841cd..fb0f851d16e7f904c425de788ccaf4a2a19c8601 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 0d14403a3603de4e8905bc9ad2f46f954f1d4f46..29747d41c287ba51ab74e89b1020ee43a6e1c5c9 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 \