diff options
-rw-r--r-- | meta/recipes-core/base-files/base-files_3.0.14.bb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb index 6bab040e4f..e80cff1790 100644 --- a/meta/recipes-core/base-files/base-files_3.0.14.bb +++ b/meta/recipes-core/base-files/base-files_3.0.14.bb | |||
@@ -1,7 +1,7 @@ | |||
1 | SUMMARY = "Miscellaneous files for the base system." | 1 | SUMMARY = "Miscellaneous files for the base system." |
2 | DESCRIPTION = "The base-files package creates the basic system directory structure and provides a small set of key configuration files for the system." | 2 | DESCRIPTION = "The base-files package creates the basic system directory structure and provides a small set of key configuration files for the system." |
3 | SECTION = "base" | 3 | SECTION = "base" |
4 | PR = "r71" | 4 | PR = "r72" |
5 | LICENSE = "GPLv2" | 5 | LICENSE = "GPLv2" |
6 | LIC_FILES_CHKSUM = "file://licenses/GPL-2;md5=94d55d512a9ba36caa9b7df079bae19f" | 6 | LIC_FILES_CHKSUM = "file://licenses/GPL-2;md5=94d55d512a9ba36caa9b7df079bae19f" |
7 | # Removed all license related tasks in this recipe as license.bbclass | 7 | # Removed all license related tasks in this recipe as license.bbclass |
@@ -107,10 +107,12 @@ do_install () { | |||
107 | } | 107 | } |
108 | 108 | ||
109 | do_install_basefilesissue () { | 109 | do_install_basefilesissue () { |
110 | if [ -n "${MACHINE}" -a "${hostname}" = "openembedded" ]; then | 110 | if [ "${hostname}" != "" ]; then |
111 | echo ${MACHINE} > ${D}${sysconfdir}/hostname | 111 | if [ -n "${MACHINE}" -a "${hostname}" = "openembedded" ]; then |
112 | else | 112 | echo ${MACHINE} > ${D}${sysconfdir}/hostname |
113 | echo ${hostname} > ${D}${sysconfdir}/hostname | 113 | else |
114 | echo ${hostname} > ${D}${sysconfdir}/hostname | ||
115 | fi | ||
114 | fi | 116 | fi |
115 | 117 | ||
116 | install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} | 118 | install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} |
@@ -144,5 +146,5 @@ FILES_${PN}-doc = "${docdir} ${datadir}/common-licenses" | |||
144 | 146 | ||
145 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 147 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
146 | 148 | ||
147 | CONFFILES_${PN} = "${sysconfdir}/fstab ${sysconfdir}/hostname" | 149 | CONFFILES_${PN} = "${sysconfdir}/fstab ${@['', '${sysconfdir}/hostname'][(d.getVar('hostname', True) != '')]}" |
148 | 150 | ||