From 48160eccb67a1f9c15055d6d8adf3c52eea80c1c Mon Sep 17 00:00:00 2001 From: sthope Date: Sat, 13 Nov 2021 17:25:58 +0100 Subject: [PATCH] Add 'custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh' --- custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh diff --git a/custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh b/custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh new file mode 100644 index 0000000..1f0f812 --- /dev/null +++ b/custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh @@ -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 \ No newline at end of file