diff options
| -rw-r--r-- | meta/recipes-core/systemd/systemd_228.bb | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/meta/recipes-core/systemd/systemd_228.bb b/meta/recipes-core/systemd/systemd_228.bb index 19b7b4218d..df8813ac42 100644 --- a/meta/recipes-core/systemd/systemd_228.bb +++ b/meta/recipes-core/systemd/systemd_228.bb | |||
| @@ -404,6 +404,18 @@ ALTERNATIVE_TARGET[runlevel] = "${base_bindir}/systemctl" | |||
| 404 | ALTERNATIVE_LINK_NAME[runlevel] = "${base_sbindir}/runlevel" | 404 | ALTERNATIVE_LINK_NAME[runlevel] = "${base_sbindir}/runlevel" | 
| 405 | ALTERNATIVE_PRIORITY[runlevel] ?= "300" | 405 | ALTERNATIVE_PRIORITY[runlevel] ?= "300" | 
| 406 | 406 | ||
| 407 | pkg_postinst_${PN} () { | ||
| 408 | sed -e '/^hosts:/s/\s*\<myhostname\>//' \ | ||
| 409 | -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \ | ||
| 410 | -i $D${sysconfdir}/nsswitch.conf | ||
| 411 | } | ||
| 412 | |||
| 413 | pkg_prerm_${PN} () { | ||
| 414 | sed -e '/^hosts:/s/\s*\<myhostname\>//' \ | ||
| 415 | -e '/^hosts:/s/\s*myhostname//' \ | ||
| 416 | -i $D${sysconfdir}/nsswitch.conf | ||
| 417 | } | ||
| 418 | |||
| 407 | pkg_postinst_udev-hwdb () { | 419 | pkg_postinst_udev-hwdb () { | 
| 408 | if test -n "$D"; then | 420 | if test -n "$D"; then | 
| 409 | ${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \ | 421 | ${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \ | 
