#!/bin/sh
# Telem-GW Dynamic message of the day script

. /usr/local/bin/telem/loadinfo

echo -e "$(cat "$etc_telem/asciiart")$product_id_string
+------------------------: System Data :------------------------
| Hostname = $s_hostname
| Kernel   = $uname_r
| Time     = $(date)
| Uptime   = $(Uptime)
| RAM      = ${ram_total}MB total,\t${ram_used}MB used,\t${ram_free}MB free
| Flash    = ${flash_total}B total,\t${flash_used}B used,\t${flash_free}B free
+-------------------------: Telem-GW :--------------------------
| SW Version    = $telem_version
| System booted = $boot_count times
| App started   = $app_start_count times
| App started   = $app_start_time
| GWS version   = $app_gws_version
| Order code    = $order_code
| Setup time    = $config_time
+------------------------: User Data :--------------------------
| Username = $(whoami)
+------------------------: Hardware :---------------------------
$(/usr/local/bin/telem/genhwinfo.sh)
$(/usr/local/bin/telem/geterrors.sh)
+---------------------------------------------------------------
"
