Skip to content

Commit

Permalink
dom0-ztools: Add version command
Browse files Browse the repository at this point in the history
Users might not be aware about /run/eve-release file in order to check
EVE's running version. This commit adds a "version" option to eve command
line, so users can use "eve version" to easily retrieve the version from
/run/eve-release.

Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
  • Loading branch information
rene authored and eriknordmark committed Jul 22, 2022
1 parent 9856a9b commit 7bb501d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/dom0-ztools/rootfs/bin/eve
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Welcome to EVE!
persist attach <disk>
firewall drop
verbose on|off
version
__EOT__
exit 1
}
Expand Down Expand Up @@ -118,6 +119,10 @@ __EOT__
;;
esac
;;
version)
v=$(cat /run/eve-release)
echo "$v"
;;
persist) case "$2" in
list) list_partitions
;;
Expand Down

0 comments on commit 7bb501d

Please sign in to comment.