forked from freifunk-franken/firmware
Adrian Schmutzler
fbc7dab6de
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>
10 lines
215 B
Bash
10 lines
215 B
Bash
#!/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
|