diff options
author | Ilya Yanok <yanok@emcraft.com> | 2011-04-28 00:56:58 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-04 00:40:29 +0100 |
commit | 0c28d5b23ce8d8655d95db32eb0796df1b420a11 (patch) | |
tree | 369d85bd2d178f8b951010aa4e4919efc3ff9fef /meta/recipes-connectivity/libnss-mdns | |
parent | a2030c8d1a58c79428cba80158982aea4d2d9f6d (diff) | |
download | poky-0c28d5b23ce8d8655d95db32eb0796df1b420a11.tar.gz |
libnss-mdns: add $D to postinst paths
Post installation script can be called during image creation so paths
should relative to $D.
(From OE-Core rev: 472c04ed1a8715243de0c5430883bc23d60aca19)
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/libnss-mdns')
-rw-r--r-- | meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb index b04b20abee..651a2407b8 100644 --- a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb +++ b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb | |||
@@ -26,9 +26,9 @@ EXTRA_OECONF = "--libdir=/lib --disable-lynx --enable-avahi" | |||
26 | 26 | ||
27 | # TODO: pattern based configuration update | 27 | # TODO: pattern based configuration update |
28 | pkg_postinst_${PN} () { | 28 | pkg_postinst_${PN} () { |
29 | cat /etc/nsswitch.conf | grep "hosts:\s*files dns$" > /dev/null && { | 29 | cat $D/etc/nsswitch.conf | grep "hosts:\s*files dns$" > /dev/null && { |
30 | cat /etc/nsswitch.conf | sed 's/hosts:\s*files dns/& mdns4/' > /tmp/nsswitch.conf | 30 | cat $D/etc/nsswitch.conf | sed 's/hosts:\s*files dns/& mdns4/' > /tmp/nsswitch.conf |
31 | mv /tmp/nsswitch.conf /etc/nsswitch.conf | 31 | mv /tmp/nsswitch.conf $D/etc/nsswitch.conf |
32 | } | 32 | } |
33 | } | 33 | } |
34 | 34 | ||