Hello guys,
I want to add some variables to homeassistant “badges”. So far i have cpu-temp / SSL-cert / HomeAssistant-version / Debian-version
and now i want to add the DietPi-version.
What is the command to show the dietpi-version? (cat …?)
Thnx!
try
echo $G_DIETPI_VERSION_CORE.$G_DIETPI_VERSION_SUB.$G_DIETPI_VERSION_RC
which is built from
cat /DietPi/dietpi/.version
cat /DietPi/dietpi/.version
#!/bin/bash
G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=20
G_DIETPI_VERSION_RC=0
G_GITBRANCH=dev
G_GITOWNER=Fourdee
you can also check out the banner script for more ideas
#!/bin/bash
{
#////////////////////////////////////
# DietPi Banner Script
#
#////////////////////////////////////
# Created by Daniel Knight / daniel.knight@dietpi.com / dietpi.com
#
#////////////////////////////////////
#
# Info:
# - Location: /boot/dietpi/func/dietpi-banner
# - Checks /run/dietpi/.update_available, /run/dietpi/.live_patches, /run/dietpi/.apt_updates, /run/dietpi/.dietpi_motd and /boot/dietpi/.prep_info
#
# Usage:
# - dietpi-banner = banner customisation menu
# - dietpi-banner 0 = top section + LAN IP
# - dietpi-banner 1 = clear terminal + top section + chosen entries + credits
#////////////////////////////////////
This file has been truncated. show original