udev_*.bb: honer $D in postinst scripts.
authorJohn Lee <john_lee@openmoko.org>
Mon, 22 Dec 2008 06:25:35 +0000 (14:25 +0800)
committerJohn Lee <john_lee@openmoko.org>
Mon, 22 Dec 2008 06:27:24 +0000 (14:27 +0800)
Otherwise it will overwrite host udev settings in a toolchain
environment.

Patch created by Christopher Hall <hsw@openmoko.com>

packages/udev/udev_092.bb
packages/udev/udev_097.bb
packages/udev/udev_100.bb
packages/udev/udev_118.bb

index 250b1d3..78060db 100644 (file)
@@ -62,9 +62,9 @@ pkg_postinst_append() {
                 if test "$mp" = "/"
                 then
                         root_partition="$dev"
-                        echo "$root_partition" >> ${sysconfdir}/udev/mount.blacklist
+                        echo "$root_partition" >> $D${sysconfdir}/udev/mount.blacklist
                 fi
-        done < ${sysconfdir}/fstab
+        done < $D${sysconfdir}/fstab
 
 }
 
index 397d3b9..7dce303 100644 (file)
@@ -66,9 +66,9 @@ pkg_postinst_append() {
                 if test "$mp" = "/"
                 then
                         root_partition="$dev"
-                        echo "$root_partition" >> ${sysconfdir}/udev/mount.blacklist
+                        echo "$root_partition" >> $D${sysconfdir}/udev/mount.blacklist
                 fi
-        done < ${sysconfdir}/fstab
+        done < $D${sysconfdir}/fstab
 
 }
 
index f1dba7f..2aa71d6 100644 (file)
@@ -64,9 +64,9 @@ pkg_postinst_append() {
                 if test "$mp" = "/"
                 then
                         root_partition="$dev"
-                        echo "$root_partition" >> ${sysconfdir}/udev/mount.blacklist
+                        echo "$root_partition" >> $D${sysconfdir}/udev/mount.blacklist
                 fi
-        done < ${sysconfdir}/fstab
+        done < $D${sysconfdir}/fstab
 
 }
 
index 20fef83..ef1fb14 100644 (file)
@@ -65,8 +65,8 @@ pkg_postinst_append() {
                 if test "$mp" = "/"
                 then
                         root_partition="$dev"
-                        echo "$root_partition" >> ${sysconfdir}/udev/mount.blacklist
+                        echo "$root_partition" >> $D${sysconfdir}/udev/mount.blacklist
                 fi
-        done < ${sysconfdir}/fstab
+        done < $D${sysconfdir}/fstab
 }