Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gluon-site
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Freifunk Saar
gluon-site
Commits
a2890e1a
Commit
a2890e1a
authored
Dec 08, 2019
by
Ralf
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install a custom banner for SSH logins
parent
470ed2ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
banner.sh
banner.sh
+24
-0
ci-release.sh
ci-release.sh
+3
-2
No files found.
banner.sh
0 → 100755
View file @
a2890e1a
#!/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
ci-release.sh
View file @
a2890e1a
...
...
@@ -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
...
...
Ralf
@ralf
mentioned in issue
Freifunk#10 (closed)
·
Dec 08, 2019
mentioned in issue
Freifunk#10 (closed)
mentioned in issue Freifunk#10
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment