Innovenergy_trunk/firmware/opt/innovenergy/scripts/info

24 lines
661 B
Plaintext
Raw Permalink Normal View History

2023-02-16 12:57:06 +00:00
#!/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"