1
0
Fork 0

Tweak settings & add last updated

This commit is contained in:
Starbeamrainbowlabs 2018-01-03 19:09:34 +00:00
parent 3853bb93dd
commit 6c68107e5a
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
3 changed files with 11 additions and 5 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
.cloudcatcher_settings .cloudcatcher-settings
*.txt
# Created by https://www.gitignore.io/api/git # Created by https://www.gitignore.io/api/git

View File

@ -78,10 +78,15 @@ wait
echo -e "Welcome to $(cat ${tmpdir}hostname.txt)"; echo -e "Welcome to $(cat ${tmpdir}hostname.txt)";
echo -e " ${LC}running $(cat ${tmpdir}distro-description.txt)${RS}"; echo -e " ${LC}running $(cat ${tmpdir}distro-description.txt)${RS}";
echo -e "";
echo -e "Kernel: ${FRED}$(cat ${tmpdir}kernel-version.txt)${RS}"; echo -e "Kernel: ${FRED}$(cat ${tmpdir}kernel-version.txt)${RS}";
echo -e "Uptime: ${FGRN}$(cat ${tmpdir}uptime.txt)${RS}"; echo -e "Uptime: ${FGRN}$(cat ${tmpdir}uptime.txt)${RS}";
echo -e "Load: ${FONG}$(cat ${tmpdir}load.txt)${RS}"; echo -e "Load: ${FONG}$(cat ${tmpdir}load.txt)${RS}";
echo -e "IPs: ${FBLE}$(cat ${tmpdir}ips.txt)${RS}"; echo -e "IPs:";
echo -e " ${FBLE}$(cat ${tmpdir}ips.txt)${RS}";
echo -e "";
echo -e "${LC}Last updated at $(date +"%l:%M%p")${RS}";
echo -e "";
cat ${tmpdir}apt-packages.txt; cat ${tmpdir}apt-packages.txt;
cat ${tmpdir}reboot_required.txt; cat ${tmpdir}reboot_required.txt;

View File

@ -4,13 +4,13 @@
logo_filename="logo.txt"; logo_filename="logo.txt";
info_filename=$(mktemp --suffix -cloudcatcher); info_filename=$(mktemp --suffix -cloudcatcher);
if [ -f .cloudcatcher_settings ]; then if [ -f .cloudcatcher-settings ]; then
source .cloudcatcher_settings; source .cloudcatcher-settings;
fi fi
################ ################
cloudcatcher-info.sh >${info_filename} ./cloudcatcher-info.sh >${info_filename}
### Output ### ### Output ###
echo echo