overlay/app-misc/sablink-core/files/greeting.sh

36 lines
1.8 KiB
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# asciiart genrator
# http://www.network-science.de/ascii/ Font big for SabLink
#clear
COLOUR_LOGO="31"
COLOUR_INFO1="32"
COLOUR_INFO2="31"
COLOUR_INFO3="37"
echo ''
echo 'Hello, welcome to [1;'${COLOUR_INFO1}';40m'$(uname -n)', running'
echo '[0;'${COLOUR_LOGO}';40m _____ _ _ _ _ '
echo '[0;'${COLOUR_LOGO}';40m / ____| | | | | (_) | | '
echo '[0;'${COLOUR_LOGO}';40m| (___ __ _| |__ | | _ _ __ | | __'
echo '[0;'${COLOUR_LOGO}';40m \___ \ / _` | ´_ \| | | | ´_ \| |/ /'
echo '[0;'${COLOUR_LOGO}';40m ____) | (_| | |_) | |____| | | | | < '
echo '[0;'${COLOUR_LOGO}';40m|_____/ \__,_|_.__/|______|_|_| |_|_|\_\'
echo ''
echo '[1;'${COLOUR_INFO2}';40m'$(uname -s)' '$(uname -m)' '$(uname -r)' (compiled [0;'${COLOUR_INFO3}';40m'$(uname -v)')'
echo ''
echo 'Processor : [0;'${COLOUR_INFO1}';40m'$(cat /proc/cpuinfo | grep -i 'Processor' | cut -c 13-50 )''
echo 'BogoMIPS : [0;'${COLOUR_INFO1}';40m'$(cat /proc/cpuinfo | grep -i 'BogoMIPS' | cut -c 12-50 | tr -d ' ')''
echo 'RAM : [0;'${COLOUR_INFO1}';40m'$(free -m | grep -i 'Mem:' | cut -c 13-20)'[0;'${COLOUR_INFO3}';40mMB'
echo 'Swap : [0;'${COLOUR_INFO1}';40m'$(free -m | grep -i 'Swap:' | cut -c 15-20)'[0;'${COLOUR_INFO3}';40mMB'
echo 'Uptime : [0;'${COLOUR_INFO3}';40m'$(uptime | cut -c 2-60)''
echo 'Logged on as : [0;'${COLOUR_INFO1}';40m'$(whoami)' on [0;'${COLOUR_INFO1}';40m'$(tty)'[0;'${COLOUR_INFO3}';40m since [0;'${COLOUR_INFO1}';40m'$(date)''
echo 'Users logged in : [0;'${COLOUR_INFO1}';40m'$(who -q | more +1)''
echo ''
echo 'Package updates : [0;'${COLOUR_INFO1}';40m'$(equo-update-check)' available updates'
echo ''