Exemplos em código fonte#
Ajuste de relógio via HTP#
SIMET2_DEVICE_MODEL a partir de /proc/cpuinfo#
Bash
#!/bin/sh
# Save this at /opt/simet/bin/simet_get_device_model.sh
#
# Model from /proc/cpuinfo, useful on many ARM and other
# Device-tree-based platforms.
#
sed -n -e '/^Model[[:blank:]]\+:/ { s/^.*:[[:blank:]]\+// ; p; }' -e 's/^[[:blank:]]\+//' -e 's/[[:blank:]]\+$//' < /proc/cpuinfo | sed -n -e '1 { p; q; }' || exit 1
: