diff options
author | Robert P. J. Day <rpjday@crashcourse.ca> | 2014-08-02 06:38:49 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-06 10:03:21 +0100 |
commit | aa87eade2bbb92f66894508384528600b4d6d2d0 (patch) | |
tree | f91adf595da4a0295ad1fb89ac9a4fa102bbf8a5 /meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb | |
parent | ce7b1b07f76b90adc2aa0d9334a6866b3e80c0be (diff) | |
download | poky-aa87eade2bbb92f66894508384528600b4d6d2d0.tar.gz |
nss*: Replace hardcoded "/etc" with "${sysconfdir}"
(From OE-Core rev: 1c44e057c66fe20d491fcb3ae45defe0a300b256)
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb')
-rw-r--r-- | meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb | 4 |
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 540f22330a..d8ec863954 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 | |||
16 | pkg_postinst_${PN} () { | 16 | pkg_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/etc/nsswitch.conf | 19 | -i ${D}${sysconfdir}/nsswitch.conf |
20 | } | 20 | } |
21 | 21 | ||
22 | pkg_prerm_${PN} () { | 22 | pkg_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/etc/nsswitch.conf | 25 | -i ${D}${sysconfdir}/nsswitch.conf |
26 | } | 26 | } |