base-files: tweak issue and issue.net

Issue not shows the kernel version and issue.net now only shows the hostname only once

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Koen Kooi
2011-07-25 09:12:26 +02:00
parent f47df52ba8
commit b12cba4fda
2 changed files with 18 additions and 2 deletions

View File

@@ -9,4 +9,3 @@
The Angstrom Distribution %h

View File

@@ -1,6 +1,6 @@
FILESEXTRAPATHS := "${THISDIR}/${PN}"
PRINC = "6"
PRINC = "7"
# Original: volatiles = "cache run log lock tmp"
# We don't any of those in volatiles, so:
@@ -14,3 +14,20 @@ dirs755 += "${localstatedir}/cache \
${localstatedir}/volatile/tmp \
"
BASEFILESISSUEINSTALL = "do_install_angstromissue"
do_install_angstromissue () {
echo ${MACHINE} > ${D}${sysconfdir}/hostname
install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir}
if [ -n "${DISTRO_NAME}" ]; then
echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue
echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net
if [ -n "${DISTRO_VERSION}" ]; then
echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue
echo -e "${DISTRO_VERSION} \n" >> ${D}${sysconfdir}/issue.net
fi
echo "- Kernel \r" >> ${D}${sysconfdir}/issue
echo >> ${D}${sysconfdir}/issue
fi
}