Commit a2890e1a authored by Ralf's avatar Ralf

install a custom banner for SSH logins

parent 470ed2ea
#!/bin/bash
# Install a custom banner for our firmware.
if [ ! -d "site" ]; then
echo "This script must be called from within the gluon directory"
exit 1
fi
if [ -z "$RELEASE_VERSION" ]; then
RELEASE_VERSION=$(site/version.sh)
fi
cat >openwrt/package/base-files/files/etc/banner <<EOF
_____ _____
_/ ____\\/ ____\\___________ _____ _______
\\ __\\\\ __\\/ ___/\\__ \\ \\__ \\\\_ ___\\
| | | | \\___ \\ / __ \\_/ __ \\| |
|__| |__| /_____/ (_____/(_____//__|
-----------------------------------------------------
%D %V, %C
gluon-ffsaar $RELEASE_VERSION / gluon $(git describe)
-----------------------------------------------------
Gluon commandline administration reference:
https://github.com/freifunk-gluon/gluon/wiki/Commandline-administration
-----------------------------------------------------
EOF
......@@ -21,9 +21,10 @@ function run_and_print() {
cd ..
if [ ! -d "site" ]; then
echo "This script must be called from within the site directory"
return
exit 1
fi
. site/ansi-colors.sh
. site/ansi-colors.sh # utilities
. site/banner.sh # install our banner
rm -rf output
# one-time preparation
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment