From f5da8bc212f1e06f3ee298861b86bd9362c6c3d2 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 9 Aug 2016 10:25:11 +0300 Subject: Add /etc/issue with version --- router.customize | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/router.customize b/router.customize index b68de63..4b26aa9 100755 --- a/router.customize +++ b/router.customize @@ -31,6 +31,12 @@ export LC_ALL=C rootdir="$1" +# Create /etc/issue with version info. +version="$(git show HEAD | sed 1q)" +cat < "$rootdir/etc/issue" +Mini PC router ($version) +EOF + # Configure network ports. eth0 is WAN and gets its adress using DHCP. # The rest will serve the LAN and dnsmasq will serve address to LAN via # DHCP on these ports. The LAN interfaces have a static config. -- cgit v1.2.1