summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
index d8ec863954..1237602553 100644
--- a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
+++ b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
@@ -16,11 +16,11 @@ inherit autotools
16pkg_postinst_${PN} () { 16pkg_postinst_${PN} () {
17 sed -e '/^hosts:/s/\s*\<myhostname\>//' \ 17 sed -e '/^hosts:/s/\s*\<myhostname\>//' \
18 -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \ 18 -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \
19 -i ${D}${sysconfdir}/nsswitch.conf 19 -i $D${sysconfdir}/nsswitch.conf
20} 20}
21 21
22pkg_prerm_${PN} () { 22pkg_prerm_${PN} () {
23 sed -e '/^hosts:/s/\s*\<myhostname\>//' \ 23 sed -e '/^hosts:/s/\s*\<myhostname\>//' \
24 -e '/^hosts:/s/\s*myhostname//' \ 24 -e '/^hosts:/s/\s*myhostname//' \
25 -i ${D}${sysconfdir}/nsswitch.conf 25 -i $D${sysconfdir}/nsswitch.conf
26} 26}