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:
@@ -9,4 +9,3 @@
|
||||
|
||||
The Angstrom Distribution %h
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user