Comments (8)
@kls0e #61 enables us to have a dynamic section in the banner, which gets updated once per minute. The result looks like that:
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 19.07.4, r11208-ce6496d796
-----------------------------------------------------
Host.............................: testnode.olsr
IP-Address.......................: 172.16.6.2
Uptime...........................: 4 min
Free flash.......................: 9.1M
Average load (1m, 5m, 15m).......: 0.26, 0.44, 0.21
DHCP-Clients.....................: 1
Everything above the Host
-line will be generated by the buildsystem. The packages from #61 is fairly flexible. Additionaly, you could install it on hedy-devices, to have dynamic banners there. I verified that with my hedy-based bbb-access-router.
To issue of the ASCII-Art, I'd like to hack that into the buildsystem.
from falter-packages.
I have left some review requests for #61. I think this would be a good way for us to "customize" the banner.
from falter-packages.
We can put that under /etc/config/banner
and then exchange /etc/profile
[ -f /etc/banner ] && cat /etc/banner
with our own banner.
@Akira25 ? xD
from falter-packages.
I like the idea of including uptime and free flash space. But for the Freifunk-stamp I'd prefer a more readable font. Maybe we leave it like the old one? I actually like that really much. What about something like that?:
_____ _ __ _
| ___| (_)/ _| | |
| |_ _ __ ___ _| |_ _ _ _ __ | | __
| _| '__/ _ \ | _| | | | '_ \| |/ /
| | | | | __/ | | | |_| | | | | <
\_| |_| \___|_|_| \__,_|_| |_|_|\_\
Freifunk Berlin Firmware (falter beta3, r21500)
Generic - ar71xx/generic
https://wiki.freifunk.net/Berlin:Firmware
https://github.com/Freifunk-Spalter/
-----------------------------------------------------
If you find bugs please report them at:
https://github.com/Freifunk-Spalter/packages/issues/
For questions write a mail to <[email protected]>
or check https://berlin.freifunk.net/contact for our weekly meetings.
AFAICT, the banner was generated in the buildprocess. Thus all values (revision, version, etc) were up-to-date. If I can integrate that into our current build-system, I would prefer that, than patching the banner at runtime.
In concerns of uptime and free flash... Is it possible to embed subshells into the banner? something like:
Freifunk Berlin Firmware (falter beta3, r21500)
Generic - ar71xx/generic
https://wiki.freifunk.net/Berlin:Firmware
https://github.com/Freifunk-Spalter/
I'm up for $(cat /xxx/xxx/uptime) days.
$(df -h | grep flash | cut ......) kiB of free flash.
from falter-packages.
In concerns of uptime and free flash... Is it possible to embed subshells into the banner? something like:
Of course. ;) We can just modify profile :D We can do what we want. :P
from falter-packages.
In concerns of uptime and free flash... Is it possible to embed subshells into the banner? something like:
Of course. ;) We can just modify profile :D We can do what we want. :P
How do you want to modify /etc/profile
? I'd really prefer to use the buildsystem for that. There we can use placeholders (like in printf) to give a individual banner for every architecture. Shortcuts | Example
@pmelange What would be the most elegant way to apply a new banner? With falter-build-script, I could overwrite the file just before starting the build. But that feels rather like a dirty hack.
from falter-packages.
How do you want to modify
/etc/profile
? I'd really prefer to use the buildsystem for that. There we can use placeholders (like in printf) to give a individual banner for every architecture. Shortcuts | Example
I think we can obtain everything with a simple bash script. ;) But I don't care and the different solutions are not excluding each other. :D
from falter-packages.
thanks everyone, beautiful.
from falter-packages.
Related Issues (20)
- tunnelmanager: babeld can't determine whether a wireguard interface is a wireless interface
- autoupdate: improve error handling when trying to load new firmware
- autoupdate-luci: Add input-field validation
- autoupdate: Add option for immediate autoupdate
- ffserviced: reload-trigger must not have quotes
- falter-berlin-admin-keys: explicitly create directory /etc/dropbear HOT 1
- service registrar: check for | in service name HOT 1
- tunnelmanager: up script might need some fixes HOT 3
- ffwizard: reboots multiple times HOT 3
- IPv6 for DHCP clients
- IPv6 Babel in Falter
- Test autoupdater over IPv6
- IPv4 over IPv6
- Easy first boot HOT 2
- Display Babel status in Luci
- packages don't build due ucode HOT 1
- Rename master-branch and set branch protection
- Autoupdate: switch lan/wan ports
- OpenWrt switches Package Managers (OPKG vs. APK) HOT 1
- olsr v1 interface mode [ether|mesh] is ignored if LinkQualityAlgorithm is not etx_ffeth HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from falter-packages.