From fa097feafd6109d26d013c5da3bd108d961669c5 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Sun, 13 Jun 2004 17:17:47 +0000 Subject: use openembedded as hostname if is unset BKrev: 40cc8c3bOZ7VOMmZugDCB_8utTQFHw --- base-files/base-files_3.0.14.oe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base-files') diff --git a/base-files/base-files_3.0.14.oe b/base-files/base-files_3.0.14.oe index d92bb26bd1..5fe0cde7f4 100644 --- a/base-files/base-files_3.0.14.oe +++ b/base-files/base-files_3.0.14.oe @@ -1,7 +1,7 @@ xDESCRIPTION = "Base system miscellaneous files." SECTION = "base" PRIORITY = "required" -PR = "r5" +PR = "r6" SRC_URI = " \ file://etc/nsswitch.conf \ @@ -81,7 +81,7 @@ do_install () { install -d ${D}/${sysconfdir} oe_machinstall -m 0644 ${WORKDIR}/fstab ${D}/${sysconfdir}/fstab - echo ${MACHINE} > ${D}/${sysconfdir}/hostname + [ -z "${MACHINE}" ] && echo "openembedded" >${D}/${sysconfdir}/hostname || echo ${MACHINE} >${D}/${sysconfdir}/hostname oe_machinstall -m 0644 ${WORKDIR}/profile ${D}/${sysconfdir}/profile install -m 0644 ${WORKDIR}/etc/issue-${DISTRO} ${D}/${sysconfdir}/issue install -m 0644 ${WORKDIR}/etc/issue.net-${DISTRO} ${D}/${sysconfdir}/issue.net -- cgit v1.2.3