From 6e77c62653df4a76f7a97e7ce778abd8015e15d6 Mon Sep 17 00:00:00 2001 From: nott Date: Mon, 13 Sep 2010 20:03:15 +0000 Subject: [PATCH] get hostname from niminfo file git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7441 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/aixlitesetup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/aixlitesetup b/xCAT/postscripts/aixlitesetup index 9c89f1aa8..c6347f5a8 100644 --- a/xCAT/postscripts/aixlitesetup +++ b/xCAT/postscripts/aixlitesetup @@ -10,7 +10,6 @@ # ############################################################################### -ME=`hostname -s` SL="/.statelite" ROOTDIR="/" MOUNTDIR="$SL/mnt" # where I mount all the trees. @@ -25,6 +24,10 @@ LITEFILE="/litefile.table" LITETREE="/litetree.table" LOG="${ROOTDIR}/${SL}/statelite.log" +# get this node name from the /etc/niminfo file +INFO=`cat /etc/niminfo | grep 'NIM_HOSTNAME'` +ME=`echo $INFO | awk -F= '{print $2}'` + # check the statelite.table file to see if we have # a persistent dir to mount. ProcessStatelite () {