blob: c79197445e07e2f37df0e6cb24105e9cccc38e99 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001SUMMARY = "Meta package adding machine name to known hosts"
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
4
5ALLOW_EMPTY_${PN} = "1"
6
7LOCALHOSTMACHINE = "127.0.0.1 ${MACHINE}"
8
9# on some machines starting applications as xfce4-terminal take ages without
10# machine name in hosts
11pkg_postinst_${PN} () {
12if ! grep -q '${LOCALHOSTMACHINE}' $D/etc/hosts ; then
13 echo '${LOCALHOSTMACHINE}' >> $D/etc/hosts
14fi
15}
16
17PACKAGE_ARCH = "${MACHINE_ARCH}"