Firmware Version from command line
Posted: Tue Feb 11, 2020 11:06 pm
I am trying to find the best way to display the firmware version form the command line.
The following snippet works after the system is up and running:
However, what I am trying to do is add the firmware version to the motd file at boot time. The log file in the above snippet is not present when rc.local is being run, so that code snippet produces an empty string when run at boot time.
Is there a better place to pull the firmware version from that exist at boot?
The following snippet works after the system is up and running:
Code: Select all
grep 'MMDVM protocol version' /var/log/pi-star/MMDVM*.log | awk '{print $9}'
Is there a better place to pull the firmware version from that exist at boot?