Innovenergy_trunk/firmware/etc/profile.d/prompt_command

9 lines
232 B
Plaintext

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"