Minor changes
This commit is contained in:
parent
fe0f720f25
commit
b7e94d237a
1 changed files with 21 additions and 9 deletions
30
sysdump.sh
30
sysdump.sh
|
@ -266,13 +266,21 @@ then
|
||||||
echo "Swap Free: ${INFO_MEM_SWAP_FREE}"
|
echo "Swap Free: ${INFO_MEM_SWAP_FREE}"
|
||||||
echo
|
echo
|
||||||
echo "====> Disk <===="
|
echo "====> Disk <===="
|
||||||
echo "${INFO_DISKS}"
|
[ -z "$INFO_DISKS" ] && echo "ERROR: No disks informations (require df)"
|
||||||
|
if [ ! -z "$INFO_DISKS" ]
|
||||||
|
then
|
||||||
|
echo "${INFO_DISKS}"
|
||||||
|
fi
|
||||||
echo
|
echo
|
||||||
echo "====> Kernel Config <===="
|
echo "====> Kernel Config <===="
|
||||||
echo "Intel RAPL: ${INFO_KERNEL_RAPL}"
|
[ -z "$KERNEL_CONFIG" ] && echo "ERROR: Kernel config not found"
|
||||||
echo "KVM: ${INFO_KERNEL_KVM}"
|
if [ ! -z "$KERNEL_CONFIG" ]
|
||||||
echo "I2C: ${INFO_KERNEL_I2C}"
|
then
|
||||||
echo "SPI: ${INFO_KERNEL_SPI}"
|
echo "Intel RAPL: ${INFO_KERNEL_RAPL}"
|
||||||
|
echo "KVM: ${INFO_KERNEL_KVM}"
|
||||||
|
echo "I2C: ${INFO_KERNEL_I2C}"
|
||||||
|
echo "SPI: ${INFO_KERNEL_SPI}"
|
||||||
|
fi
|
||||||
echo
|
echo
|
||||||
echo "====> Applications <===="
|
echo "====> Applications <===="
|
||||||
echo "ssh: $(safegetentry cmd_ssh_version|wc -c|awk '{if($0>0){print("Available")}else{print("NA")}}')"
|
echo "ssh: $(safegetentry cmd_ssh_version|wc -c|awk '{if($0>0){print("Available")}else{print("NA")}}')"
|
||||||
|
@ -284,10 +292,14 @@ then
|
||||||
echo "tmux: $(safegetentry cmd_tmux_version|wc -c|awk '{if($0>0){print("Available")}else{print("NA")}}')"
|
echo "tmux: $(safegetentry cmd_tmux_version|wc -c|awk '{if($0>0){print("Available")}else{print("NA")}}')"
|
||||||
echo
|
echo
|
||||||
echo "====> Hardware <===="
|
echo "====> Hardware <===="
|
||||||
echo "Type: ${INFO_HW_TYPE}"
|
[ -z "$LSHW" ] && echo "ERROR: Require lshw and root permissions"
|
||||||
echo "Vendor: ${INFO_HW_VENDOR}"
|
if [ ! -z "$LSHW" ]
|
||||||
echo "Version: ${INFO_HW_VERSION}"
|
then
|
||||||
echo "Display: ${INFO_HW_DISPLAY}"
|
echo "Type: ${INFO_HW_TYPE}"
|
||||||
|
echo "Vendor: ${INFO_HW_VENDOR}"
|
||||||
|
echo "Version: ${INFO_HW_VERSION}"
|
||||||
|
echo "Display: ${INFO_HW_DISPLAY}"
|
||||||
|
fi
|
||||||
echo
|
echo
|
||||||
echo "====> Other informations <===="
|
echo "====> Other informations <===="
|
||||||
echo "Dump User: ${INFO_DUMP_USER}"
|
echo "Dump User: ${INFO_DUMP_USER}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue