diff options
author | Kim Hagen <khagen@multi-development.com> | 2014-06-16 11:15:29 +0200 |
---|---|---|
committer | Kim Hagen <khagen@multi-development.com> | 2014-06-16 11:15:29 +0200 |
commit | 5fd192bd2f08188c53ba36f0903bbea71af75cf5 (patch) | |
tree | 18b5a18a352db3342ca01ccb66b31a114cd7f677 /scripts/install | |
parent | a4a8cf91654da86dbfd66c722b9b3d201e74af9b (diff) | |
download | vyatta-cfg-system-5fd192bd2f08188c53ba36f0903bbea71af75cf5.tar.gz vyatta-cfg-system-5fd192bd2f08188c53ba36f0903bbea71af75cf5.zip |
Bug #239 - Getting the version number by using dpkg will not work when upgrading to newer version of debian.
Diffstat (limited to 'scripts/install')
-rwxr-xr-x | scripts/install/install-image-existing | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing index 5c042d48..d7f2578b 100755 --- a/scripts/install/install-image-existing +++ b/scripts/install/install-image-existing @@ -66,7 +66,7 @@ if [ -z "$CURVER" ]; then fi # get new version string. this is from the squashfs image. -NEWVER=`dpkg -l --root=${CD_SQUASH_ROOT} | grep "^.. vyatta-version " | awk '{print $3}'` +NEWVER=`cat ${CD_SQUASH_ROOT}/opt/vyatta/etc/version | grep "Version:" | awk '{print $2,$3}' | sed 's/ /-/g'` NEWNAME=$NEWVER echo -n "What would you like to name this image? [$NEWNAME]: " |