~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to providers/plainbox-provider-tpm/units/unused.pxu

  • Committer: Zygmunt Krynicki
  • Date: 2013-05-29 07:50:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2153.
  • Revision ID: zygmunt.krynicki@canonical.com-20130529075030-ngwz245hs2u3y6us
checkbox: move current checkbox code into checkbox-old

This patch cleans up the top-level directory of the project into dedicated
sub-project directories. One for checkbox-old (the current checkbox and all the
associated stuff), one for plainbox and another for checkbox-ng.

There are some associated changes, such as updating the 'source' mode of
checkbox provider in plainbox, and fixing paths in various test scripts that we
have.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
unit: job
2
 
id: bios
3
 
category_id: tpm
4
 
plugin: resource
5
 
_summary: Detect presence of TPM chip
6
 
_description:
7
 
 BIOS configuration may be preventing the OS from detecting and interacting
8
 
 with the TPM chip. TPM chips can be in one of three BIOS states:
9
 
 - Active (functional)
10
 
 - Inactive (visible but not functional)
11
 
 - Disabled (not visible and not functional)
12
 
 .
13
 
 This resource job describes the BIOS setting of the TPM chip. The output is
14
 
 always a resource with one record. The record contains only one key:
15
 
 .
16
 
 setting: Active|Inactive|Disabled
17
 
command:
18
 
 if tpm_version >/dev/null; then
19
 
    if tpm_setenable --status --well-known | grep -q -F 'code=0006 (6)'; then
20
 
        echo "setting: Inactive"
21
 
    else
22
 
        echo "setting: Active"
23
 
    fi
24
 
 else
25
 
    echo "setting: Disabled"
26
 
 fi
27
 
flags: preserve-locale
28
 
estimated_duration: 3s