Debian Codegraph @

support/mender-inventory-hostinfo

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # The example script collects information about current host
4 #
5
6 set -ue
7
8 LC_ALL=C
9 export LC_ALL
10
11 grepscip-shell system . . grep. 'model name' /proc/cpuinfoscip-shell filesystem . . `/proc/cpuinfo`. | uniqscip-shell system . . uniq. | awkscip-shell system . . awk. -F': ' '
12 // { printf("cpu_model=%s\n", $2);}
13 '
14 echoscip-shell system . . echo. "kernel=$(catscip-shell system . . cat. /proc/versionscip-shell filesystem . . `/proc/version`.)"
15
16 catscip-shell system . . cat. /proc/meminfoscip-shell filesystem . . `/proc/meminfo`. | awkscip-shell system . . awk. '
17 /MemTotal/ {printf("mem_total_kB=%d\n", $2)}
18 '
19
20 echoscip-shell system . . echo. "hostname=$(catscip-shell system . . cat. /etc/hostnamescip-shell filesystem . . `/etc/hostname`.)"
21