summaryrefslogtreecommitdiff
path: root/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'base-files')
-rw-r--r--base-files/base-files_3.0.14.oe2
1 files changed, 1 insertions, 1 deletions
diff --git a/base-files/base-files_3.0.14.oe b/base-files/base-files_3.0.14.oe
index 5ca5958053..26cfa0f6e2 100644
--- a/base-files/base-files_3.0.14.oe
+++ b/base-files/base-files_3.0.14.oe
@@ -56,7 +56,7 @@ do_install () {
install -m 2755 -d ${D}/$d
done
- if [ -z "${MACHINE}" -a "${hostname}" == "openembedded" ]; then
+ if [ -n "${MACHINE}" -a "${hostname}" == "openembedded" ]; then
echo ${MACHINE} > ${D}/${sysconfdir}/hostname
else
echo ${hostname} > ${D}/${sysconfdir}/hostname