diff options
Diffstat (limited to 'templates/show')
-rw-r--r-- | templates/show/version/node.def | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/show/version/node.def b/templates/show/version/node.def index fdeffc2..1a1adb0 100644 --- a/templates/show/version/node.def +++ b/templates/show/version/node.def @@ -1,2 +1,8 @@ help: "Show Vyatta version information" -run: cat /usr/share/doc/vyatta-*/VERSION /dev/null +run: for cl in /usr/share/doc/vyatta-*/changelog.gz ; do + dir=${cl%/*} ; + pkg=${dir##*/} ; + printf " %-20s " ${pkg} ; + test ${#pkg} -lt 20 || echo -ne \\n\\t ; + gunzip -c $cl | tail -n1 ; + done |