diff --git a/lib.sh b/lib.sh index 6295fbcf..abc6a538 100644 --- a/lib.sh +++ b/lib.sh @@ -1208,19 +1208,18 @@ fi # Check if it's the Home/SME Server -#if home_sme_server -#then +# if home_sme_server +# then # do something -#fi - +# fi home_sme_server() { # OLD DISKS: "Samsung SSD 860" || ST5000LM000-2AN1 || ST5000LM015-2E81 # OLD MEMORY: BLS16G4 (Balistix Sport) || 18ASF2G72HZ (ECC) -if lshw -c system | grep -q NUC8i3BEH +if lshw -c system | grep -q "NUC8i3BEH\|NUC10i3FNH" then - if lshw -c memory | grep -q "BLS16G4\|18ASF2G72HZ\|16ATF2G64HZ" + if lshw -c memory | grep -q "BLS16G4\|18ASF2G72HZ\|16ATF2G64HZ" then - if lshw -c disk | grep -q "ST2000LM015-2E81\|WDS400\|ST5000LM000-2AN1\|ST5000LM015-2E81\|Samsung SSD 860" + if lshw -c disk | grep -q "ST2000LM015-2E81\|WDS400\|ST5000LM000-2AN1\|ST5000LM015-2E81\|Samsung SSD 860\|WDS500G1R0B" then NEXTCLOUDHOMESME=yes-this-is-the-home-sme-server fi