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