From 2e79ba2ebd458224a0bf2c3b4213ac251807a43d Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 4 Aug 2011 12:29:52 +0000 Subject: [PATCH] Do not show missing vpdudpate error message defect 3383825 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10225 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatdsklspost | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index ecaadeaee..e0daf7e73 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -17,14 +17,9 @@ 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 + if [ -f /usr/sbin/vpdupdate ]; then vpdupdate - logger -t xCAT "xcatdsklspost: updating VPD database" + logger -t xCAT "xcatdsklspost: updating VPD database" fi } update_VPD