]> git.openpandora.org Git - openembedded.git/commitdiff
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 92e37de4f7c4cf95301bbb1e2a1b3e2647078f4d..60783e92a4cc18f8018774deb2454f38d2d12ce2 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 84c414fd0dc41a6edfd3c4e513ada52fe74a7cc3..d7cc3aa017ad0b46dd294a32ef89c6838bac2079 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 288157ef3f15e3c41ba3d3b5b4213ad980757832..4484f6e5b6e9c46befc018359925af986231c428 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
 
 }