User's Manual
12 How to manage interfaces in Linux ReliaGATE 10-12 User manual Rev. 2-1
12.17 How to read the Internal Temperature Sensor
The ReliaGATE 10-12 is provided with a sensor that measures the temperature inside the product.
To read the internal temperature, enter the following command:
cat /sys/class/hwmon/hwmon0/temp1_input
12.18 How to know the programmable pushbutton status
The programmable pushbutton can be programmed to execute a shell script every time the button is
pushed. The script is located at /usr/bin/switch_script.sh and can be customized according to
the needs of the user.
To know the programmable pushbutton status, enter the following command:
gpio_utility gpio74
The output is as follows:
l If the button is pushed, then value = 0
l If the button is not pushed, then value = 1.
12.19 The TPM and the tpm2-tools package
The TPM 2.0 device is fully supported by Linux via the tpm2-tools package that is pre-installed in the
image.
The tpm2-tools package includes many commands used to setup and manage the TPM.
For more information refer to the following table:
Subject Link
How to use tpm2-tools https://github.com/tpm2-software/tpm2-tools/wiki/How-to-use-tpm2-tools
Information on the TPM hardware https://www.infineon.com/cms/en/product/security-smart-card-solutions/optiga-
embedded-security-solutions/optiga-tpm/slb-9670vq2.0/
12.20 Optional: How to manage the ReliaCELL power supply
If the ReliaCELL is installed, the ReliaGATE 10-12 exposes the ReliaCELL power supply as a GPIO as
follows:
l
/sys/class/gpio/gpio73/value
To manage this GPIO, see "How to drive the GPIOs: the GPIO Utility" on page71.
90 / 118