From b770e0b19d4ddc66b72ec7fa04c038055ffb3c64 Mon Sep 17 00:00:00 2001 From: Logan G Date: Sat, 27 Jan 2024 19:56:34 -0700 Subject: [PATCH] Added a more colorful MOTD and startup message --- airootfs/etc/motd | 7 +------ airootfs/etc/profile.d/99-greeting.sh | 11 +++++++++++ profiledef.sh | 1 + 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100755 airootfs/etc/profile.d/99-greeting.sh diff --git a/airootfs/etc/motd b/airootfs/etc/motd index e51bb93..0337169 100644 --- a/airootfs/etc/motd +++ b/airootfs/etc/motd @@ -1,6 +1 @@ -Welcome to Solarity Liveboot! - -Default password for the solarity account is `solarity` - -Type `labwc` to launch a GUI. - +Welcome to Solarity Liveboot(B!(B diff --git a/airootfs/etc/profile.d/99-greeting.sh b/airootfs/etc/profile.d/99-greeting.sh new file mode 100755 index 0000000..84f34b3 --- /dev/null +++ b/airootfs/etc/profile.d/99-greeting.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [[ "$(tty)" == "/dev/tty"* ]]; then + echo -e -n \ +"$(tput bold) +The default password for the $(tput setaf 4)solarity$(tput setaf 7) user is $(tput setaf 6)solarity$(tput sgr0)$(tput bold). +Type $(tput setaf 5)labwc$(tput sgr0)$(tput bold) to launch a GUI. +\n" +fi + +echo -e -n $(tput sgr0) diff --git a/profiledef.sh b/profiledef.sh index 668701e..3d0e3f0 100644 --- a/profiledef.sh +++ b/profiledef.sh @@ -26,4 +26,5 @@ file_permissions=( ["/usr/local/bin/Installation_guide"]="0:0:755" ["/usr/local/bin/livecd-sound"]="0:0:755" ["/usr/local/bin/import-gsettings"]="0:0:755" + ["/etc/profile.d/99-greeting.sh"]="0:0:755" )