From 900d58a7a220f6919fc7c80ba806037b1bfeea3e Mon Sep 17 00:00:00 2001 From: angli-xcat Date: Tue, 17 May 2011 05:53:56 +0000 Subject: [PATCH] Bug Fix (3215493) git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9609 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatdsklspost | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index 1f6d521e3..5056e50f4 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -14,6 +14,21 @@ # update security --> xcatdsklspost 5 -m/-M ... # ##################################################### + +update_VPD() +{ + which vpdupdate > /dev/null + + if [ $? -ne 0 ];then + echo "Command vpdupdate not found, VPD database won't be updated" + logger -t xCAT "xcatdsklspost: Command vpdupdate not found, VPD database won't be updated" + else + vpdupdate + logger -t xCAT "xcatdsklspost: updating VPD database" + fi +} +update_VPD + download_postscripts() { server=$1