about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-12-02 15:13:26 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-12-02 15:13:26 +0100
commite4754db8697c0ac450778b09a83148ae2818a745 (patch)
treea363ee7ecd422de1b1a857688eba2bbb5401b6a5
parent04b5b860d292768e5418408fb4512140c387c8ba (diff)
downloadhrmpf-e4754db8697c0ac450778b09a83148ae2818a745.tar.gz
hrmpf-e4754db8697c0ac450778b09a83148ae2818a745.tar.xz
hrmpf-e4754db8697c0ac450778b09a83148ae2818a745.zip
Remove version in /etc/issue, replace with build date.
-rw-r--r--data/issue.in (renamed from data/issue)2
-rw-r--r--mklive.sh.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/data/issue b/data/issue.in
index 093632c..fb0daaa 100644
--- a/data/issue
+++ b/data/issue.in
@@ -1,7 +1,7 @@
  _                    __ 
 | |_  _ _ _ __  _ __ / _|
 | ' \\| '_| '  \\| '_ \\  _|
-|_||_|_| |_|_|_| .__/_|    version 0.1.90  "Kiasoachbomba"
+|_||_|_| |_|_|_| .__/_|    @@VERSION@@
                |_|       
 
 Welcome to the hrmpf rescue system, built on Void Linux.
diff --git a/mklive.sh.in b/mklive.sh.in
index 4b12642..31dbd0d 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -385,7 +385,7 @@ install_prereqs
 
 mkdir -p "$ROOTFS"/etc
 [ -s data/motd ] && cp data/motd $ROOTFS/etc
-[ -s data/issue ] && cp data/issue $ROOTFS/etc
+[ -s data/issue.in ] && sed "s/@@VERSION@@/hrmpf-${BASE_ARCH}-${KERNELVERSION}-$(date +%Y%m%d)/" data/issue.in >$ROOTFS/etc/issue
 
 info_msg "[3/9] Installing void pkgs into the rootfs: ${PACKAGE_LIST} ..."
 install_packages