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
This commit is contained in:
parent
90eda95f4b
commit
6e77c62653
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user