Skip to main content
100%

Script for setting a nice raspberry pi logo as MOTD on debian.

✓ Published0🌍 Public
IIoTeacher
Last edited Jun 30, 2012
Created on Mar 7, 2024

This example displays a colorful Raspberry Pi ASCII-art logo composed of terminal escape sequences, alongside a Debian system message. The script uses `tput setaf` and `tput sgr0` to apply green and red text colors, then writes the generated logo to `/etc/motd.tail` when executed as root. It checks the current user with `whoami` before updating the message-of-the-day, and invokes `/etc/init.d/bootlogs` to refresh the login banner. The rendering approach relies entirely on Bash string expansion and ANSI color codes.

AI-generated description

Similar vizzes