Innovenergy_trunk/firmware/etc/profile.d/prompt_command

9 lines
232 B
Plaintext
Raw Normal View History

2023-02-16 12:57:06 +00:00
r=$?
[ $r -eq '0' ] || echo -e '['"\e[91m$r\e[00m"']'
history -a
echo
host=$(cat /data/innovenergy/openvpn/installation-name 2>/dev/null || cat /data/venus/serial-number 2>/dev/null || echo unknown)
echo -n -e "\e[92m$host\e[00m"