6ed0e6ba23
This patch add mender, an open source over-the-air (OTA) software updater for embedded Linux devices. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> [Thomas: - add entry to DEVELOPERS file. - drop dependency on systemd, since there is really no build dependency, it's just that the init script integration is missing. - add Config.in comment about the thread dependency - don't override install commands, otherwise the mender binary is not installed, and instead use a post install target hook.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
22 lines
354 B
Bash
22 lines
354 B
Bash
#!/bin/sh
|
|
#
|
|
# The example script collects information about current host
|
|
#
|
|
|
|
set -ue
|
|
|
|
LC_ALL=C
|
|
export LC_ALL
|
|
|
|
grep 'model name' /proc/cpuinfo | uniq | awk -F': ' '
|
|
// { printf("cpu_model=%s\n", $2);}
|
|
'
|
|
echo "kernel=$(cat /proc/version)"
|
|
|
|
cat /proc/meminfo | awk '
|
|
/MemTotal/ {printf("mem_total_kB=%d\n", $2)}
|
|
'
|
|
|
|
echo "hostname=$(cat /etc/hostname)"
|
|
|