Innovenergy_trunk/firmware/opt/innovenergy/scripts/info

24 lines
661 B
Bash
Executable File

#!/bin/bash
host=$(cat /data/innovenergy/openvpn/installation-name 2>/dev/null)
ip=$(cat /data/innovenergy/openvpn/installation-ip 2>/dev/null)
serial=$(cat /data/venus/serial-number 2>/dev/null)
machine=$(cat /etc/venus/machine)
swu_name=$(cat /etc/venus/swu-name)
version=$(head -n1 /opt/victronenergy/version)
dir=$(pwd)
me=$(whoami)
c='\e[96m'
r='\e[00m'
echo ""
echo -e "Installation Name: $c$host$r"
echo -e " VPN IP: $c$ip$r"
echo -e " Serial Number: $c$serial$r"
echo -e " Machine: $c$machine$r"
echo -e " SWU-Name: $c$swu_name$r"
echo -e " Venus Version: $c$version$r"
echo -e " SCP: $c$me@$ip:$dir$r"