Add 'custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh'
This commit is contained in:
parent
4dda5fafc9
commit
48160eccb6
13
custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh
Normal file
13
custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# ___ _ _ _ __
|
||||||
|
# / __|| |_ | |_ ___ | '_ \ ___
|
||||||
|
# \__ \| _|| \ / _ \| .__// -_)
|
||||||
|
# |___/ \__||_||_|\___/|_| \___|
|
||||||
|
|
||||||
|
clear;dpkg -s dmidecode &> /dev/null
|
||||||
|
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
sudo dmidecode -t 16
|
||||||
|
else
|
||||||
|
sudo apt-get -qq update;sudo apt-get -qq install -y dmidecode
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user