Code Monkey home page Code Monkey logo

Comments (8)

Akira25 avatar Akira25 commented on August 15, 2024 1

@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.

pmelange avatar pmelange commented on August 15, 2024 1

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.

PolynomialDivision avatar PolynomialDivision commented on August 15, 2024

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.

Akira25 avatar Akira25 commented on August 15, 2024

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.

PolynomialDivision avatar PolynomialDivision commented on August 15, 2024

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.

Akira25 avatar Akira25 commented on August 15, 2024

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.

PolynomialDivision avatar PolynomialDivision commented on August 15, 2024

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.

kls0e avatar kls0e commented on August 15, 2024

thanks everyone, beautiful.

from falter-packages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.