summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Yanok <yanok@emcraft.com>2011-04-28 00:56:58 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-03 12:09:22 +0100
commit472c04ed1a8715243de0c5430883bc23d60aca19 (patch)
treee2e7647ec668a0ea39c7ca459e8ea612b4817ab9
parente77e2ff2c7c51951f782b50da3d2aad3ae8d763c (diff)
downloadopenembedded-core-472c04ed1a8715243de0c5430883bc23d60aca19.tar.gz
openembedded-core-472c04ed1a8715243de0c5430883bc23d60aca19.tar.bz2
openembedded-core-472c04ed1a8715243de0c5430883bc23d60aca19.tar.xz
openembedded-core-472c04ed1a8715243de0c5430883bc23d60aca19.zip
libnss-mdns: add $D to postinst paths
Post installation script can be called during image creation so paths should relative to $D. Signed-off-by: Ilya Yanok <yanok@emcraft.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r--meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb6
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 b04b20abe..651a2407b 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"
# TODO: pattern based configuration update
pkg_postinst_${PN} () {
- cat /etc/nsswitch.conf | grep "hosts:\s*files dns$" > /dev/null && {
- cat /etc/nsswitch.conf | sed 's/hosts:\s*files dns/& mdns4/' > /tmp/nsswitch.conf
- mv /tmp/nsswitch.conf /etc/nsswitch.conf
+ cat $D/etc/nsswitch.conf | grep "hosts:\s*files dns$" > /dev/null && {
+ cat $D/etc/nsswitch.conf | sed 's/hosts:\s*files dns/& mdns4/' > /tmp/nsswitch.conf
+ mv /tmp/nsswitch.conf $D/etc/nsswitch.conf
}
}