1
0
Fork 0
mirror of https://github.com/sbrl/cloudcatcher.git synced 2018-01-26 00:52:31 +00:00

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

View file

@ -78,10 +78,15 @@ wait
echo -e "Welcome to $(cat ${tmpdir}hostname.txt)";
echo -e " ${LC}running $(cat ${tmpdir}distro-description.txt)${RS}";
echo -e "";
echo -e "Kernel: ${FRED}$(cat ${tmpdir}kernel-version.txt)${RS}";
echo -e "Uptime: ${FGRN}$(cat ${tmpdir}uptime.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}reboot_required.txt;

View file

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