summaryrefslogtreecommitdiff
path: root/router.customize
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-08-09 10:25:11 +0300
committerLars Wirzenius <liw@liw.fi>2016-08-09 10:25:11 +0300
commitf5da8bc212f1e06f3ee298861b86bd9362c6c3d2 (patch)
tree29fbcfe6693c44bc0b94b4c7d9de146733545aa1 /router.customize
parentd7e6a5af17bcfdba245e136232059fd2b9c5051b (diff)
downloadminipc-router-f5da8bc212f1e06f3ee298861b86bd9362c6c3d2.tar.gz
Add /etc/issue with version
Diffstat (limited to 'router.customize')
-rwxr-xr-xrouter.customize6
1 files changed, 6 insertions, 0 deletions
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 <<EOF > "$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.