forked from freifunk-franken/firmware
fff-support: Add device name and firmware version to MOTD
This adds a line containing the device name and the current firmware version to the MOTD shown after logging in via SSH, e.g. > TP-Link TL-WR1043N/ND v2 @ jubtl9_20190320 Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
parent
a08d42f6aa
commit
fbc7dab6de
|
@ -1,7 +1,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=fff-support
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
# Copyright 2018 Adrian Schmutzler
|
||||
# License GPLv3
|
||||
|
||||
. /etc/firmware_release
|
||||
|
||||
echo "" >> /etc/banner
|
||||
echo "> $(cat /tmp/sysinfo/model 2>/dev/null) @ $FIRMWARE_VERSION" >> /etc/banner
|
||||
echo "" >> /etc/banner
|
Loading…
Reference in New Issue
Block a user