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:
parent
3853bb93dd
commit
6c68107e5a
3 changed files with 11 additions and 5 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue