~rodsmith/hwcert-tools/multi-iperf3

« back to all changes in this revision

Viewing changes to cert-precheck

  • Committer: Mike Rushton
  • Date: 2015-11-10 20:33:14 UTC
  • Revision ID: mike.rushton@canonical.com-20151110203314-sutk90sq2rqnus33
Added CCS version check

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
3
3
 
4
 
# Display version of canonical-certification-server package installed
5
4
 
6
5
# Secure ID is set in /etc/xdg/canonical-certification.conf (?)
7
6
 
47
46
 eval pass${i}=3
48
47
}
49
48
 
50
 
steps="Ubuntu_Version EFI_Mode Installed_Ram Virtualization_Support NICs_enabled IPERF Network_Subnets" 
 
49
steps="Ubuntu_Version EFI_Mode CCS_Version Installed_Ram Virtualization_Support NICs_enabled IPERF Network_Subnets" 
51
50
yes=1
52
51
 
53
52
while getopts "i" opt; do
60
59
    echo -e "\n\e[1;33m============\e[m \e[1;34m$name\e[m \e[1;33m============\e[m"
61
60
}
62
61
 
 
62
# Display version of canonical-certification-server package installed
 
63
CCS_Version(){
 
64
name="canonical-certification-server version"
 
65
echoname
 
66
apt-cache policy canonical-certification-server|grep Installed
 
67
info
 
68
}
 
69
 
 
70
 
63
71
#Correct Ubuntu version installed (could be tricky to determine, so maybe too much effort -- or maybe just display the Ubuntu version and, if the script is interactive, ask the user to verify that it’s what was intended)
64
72
Ubuntu_Version(){
65
73
name="Ubuntu Version"