update to gen10 server

This commit is contained in:
Daniel Hansson 2020-08-19 18:27:34 +02:00 committed by GitHub
parent 67a669075f
commit 3b13b23727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

13
lib.sh
View File

@ -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