1
0
Fork 0

Tweak settings & add last updated

master
Starbeamrainbowlabs 5 years ago
parent 3853bb93dd
commit 6c68107e5a
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 3
      .gitignore
  2. 7
      cloudcatcher-info.sh
  3. 6
      cloudcatcher.sh

3
.gitignore vendored

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

@ -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;

@ -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

Loading…
Cancel
Save