mirror of
https://github.com/sbrl/cloudcatcher.git
synced 2018-01-26 00:52:31 +00:00
Minor bugfixes
This commit is contained in:
parent
6c68107e5a
commit
0f423543cc
2 changed files with 8 additions and 4 deletions
|
@ -9,6 +9,7 @@
|
||||||
# ███████ ███████ ██ ██████ ██ #
|
# ███████ ███████ ██ ██████ ██ #
|
||||||
#############################################
|
#############################################
|
||||||
|
|
||||||
|
own_dir="${BASH_SOURCE%/*}/";
|
||||||
tmpdir="$(mktemp --directory --suffix -cloudcatcher)/";
|
tmpdir="$(mktemp --directory --suffix -cloudcatcher)/";
|
||||||
|
|
||||||
##########################
|
##########################
|
||||||
|
@ -65,7 +66,7 @@ uname -r >${tmpdir}kernel-version.txt &
|
||||||
# Uptime
|
# Uptime
|
||||||
uptime --pretty | sed -e 's/up //' >${tmpdir}uptime.txt &
|
uptime --pretty | sed -e 's/up //' >${tmpdir}uptime.txt &
|
||||||
# Current ips
|
# Current ips
|
||||||
ip addr show scope global | awk -f ./parse_interface_ips.awk >${tmpdir}ips.txt &
|
ip addr show scope global | awk -f "${own_dir}/parse_interface_ips.awk" >${tmpdir}ips.txt &
|
||||||
# Load
|
# Load
|
||||||
cat /proc/loadavg | cut -d' ' -f 2 >${tmpdir}load.txt &
|
cat /proc/loadavg | cut -d' ' -f 2 >${tmpdir}load.txt &
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,19 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
|
||||||
### Settings ###
|
### Settings ###
|
||||||
|
own_dir="${BASH_SOURCE%/*}/";
|
||||||
|
|
||||||
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 "${own_dir}.cloudcatcher-settings" ]; then
|
||||||
source .cloudcatcher-settings;
|
source "${own_dir}.cloudcatcher-settings";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################
|
################
|
||||||
|
|
||||||
./cloudcatcher-info.sh >${info_filename}
|
${own_dir}cloudcatcher-info.sh >${info_filename}
|
||||||
|
|
||||||
### Output ###
|
### Output ###
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue