From 1d27be18b254c66d0a0fad7fbd02398f6990851d Mon Sep 17 00:00:00 2001
From: An-Cheng Huang <ancheng@ancheng-vm.localdomain>
Date: Wed, 26 Sep 2007 14:00:19 -0700
Subject: moved "show version" template code into script.

---
 templates/show/version/node.def | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

(limited to 'templates/show/version/node.def')

diff --git a/templates/show/version/node.def b/templates/show/version/node.def
index 1a1adb0..9e119d4 100644
--- a/templates/show/version/node.def
+++ b/templates/show/version/node.def
@@ -1,8 +1,2 @@
 help: "Show Vyatta version information"
-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
+run: ${vyatta_bindir}/show_version
-- 
cgit v1.2.3

