udev: Fixup etc->sysconfdir, make sure sysconfdir/udev exists before writing into it
authorOyvind Repvik <nail@nslu2-linux.org>
Wed, 21 Feb 2007 20:44:06 +0000 (20:44 +0000)
committerOyvind Repvik <nail@nslu2-linux.org>
Wed, 21 Feb 2007 20:44:06 +0000 (20:44 +0000)
packages/udev/udev_092.bb
packages/udev/udev_097.bb
packages/udev/udev_100.bb

index 92e37de..60783e9 100644 (file)
@@ -68,9 +68,10 @@ pkg_postinst_append() {
                 if test "$mp" = "/"
                 then
                         root_partition="$dev"
-                        echo "$root_partition" >> /etc/udev/mount.blacklist
+                       install -d ${sysconfdir}/udev
+                        echo "$root_partition" >> ${sysconfdir}/udev/mount.blacklist
                 fi
-        done < /etc/fstab
+        done < ${sysconfdir}/fstab
 
 }
 
index 84c414f..d7cc3aa 100644 (file)
@@ -68,9 +68,10 @@ pkg_postinst_append() {
                 if test "$mp" = "/"
                 then
                         root_partition="$dev"
-                        echo "$root_partition" >> /etc/udev/mount.blacklist
+                       install -d ${sysconfdir}/udev
+                        echo "$root_partition" >> ${sysconfdir}/udev/mount.blacklist
                 fi
-        done < /etc/fstab
+        done < ${sysconfdir}/fstab
 
 }
 
index 288157e..4484f6e 100644 (file)
@@ -69,9 +69,10 @@ pkg_postinst_append() {
                 if test "$mp" = "/"
                 then
                         root_partition="$dev"
-                        echo "$root_partition" >> /etc/udev/mount.blacklist
+                       install -d ${sysconfdir}/udev
+                        echo "$root_partition" >> ${sysconfdir}/udev/mount.blacklist
                 fi
-        done < /etc/fstab
+        done < ${sysconfdir}/fstab
 
 }