remove old xcat 1 postscripts, defect 3224
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14740 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c6eec9badd
commit
4a22d96d9a
@ -1,50 +0,0 @@
|
||||
#!/bin/ksh
|
||||
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
||||
#(C)IBM Corp
|
||||
#
|
||||
|
||||
. $XCATROOT/lib/functions
|
||||
|
||||
if LOCALFS=$(tabdb $SITETAB localfs 1)
|
||||
then
|
||||
LOCALDIR=$(echo $LOCALFS | awk -F: '{print $2}')
|
||||
else
|
||||
echo "$0: localfs not defined in $SITETAB" | logger -t xcat -p local4.err
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
DIRS="$LOCALDIR/goto/lib"
|
||||
|
||||
echo "$0: arch is $ARCH" | logger -t xcat -p local4.info
|
||||
case "$ARCH" in
|
||||
i686)
|
||||
DIRS="$DIRS $LOCALDIR/intel/$ARCH/lib"
|
||||
DIRS="$DIRS $LOCALDIR/intel/mkl70/lib/32"
|
||||
;;
|
||||
x86_64)
|
||||
DIRS="$DIRS $LOCALDIR/intel/$ARCH/lib"
|
||||
DIRS="$DIRS $LOCALDIR/intel/mkl70/lib/32"
|
||||
;;
|
||||
ia64)
|
||||
DIRS="$DIRS $LOCALDIR/intel/$ARCH/lib"
|
||||
DIRS="$DIRS $LOCALDIR/intel/mkl70/lib/64"
|
||||
;;
|
||||
ppc64)
|
||||
;;
|
||||
esac
|
||||
|
||||
for i in $DIRS
|
||||
do
|
||||
if egrep "^$i\$" /etc/ld.so.conf >/dev/null 2>&1
|
||||
then
|
||||
:
|
||||
else
|
||||
echo $i >>/etc/ld.so.conf
|
||||
fi
|
||||
done
|
||||
|
||||
/sbin/ldconfig
|
||||
|
||||
|
@ -1,20 +0,0 @@
|
||||
#!/bin/ksh
|
||||
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
||||
#(C)IBM Corp
|
||||
#
|
||||
#TODO: something
|
||||
exit 0
|
||||
|
||||
. $XCATROOT/lib/functions
|
||||
|
||||
echo "$RSHC" | grep "ssh" >/dev/null 2>&1
|
||||
if [ "$?" = "0" ]
|
||||
then
|
||||
logger -t xcat -p local4.info "Install: Running makesshgkh on the server"
|
||||
|
||||
service sshd start
|
||||
ssh $MASTER $XCATROOT/sbin/makesshgkh $NODE
|
||||
service sshd stop
|
||||
fi
|
||||
|
||||
exit 0
|
@ -1,20 +0,0 @@
|
||||
#!/bin/ksh
|
||||
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
||||
#(C)IBM Corp
|
||||
#
|
||||
|
||||
. $XCATROOT/lib/functions
|
||||
|
||||
RESNAME=$(whatismyres2 $NODE)
|
||||
|
||||
NFS=$(tabdb $NODERESTAB $RESNAME $noderes_nfs_install)
|
||||
POSTDIR=post
|
||||
POST_DIR=$(tabdb $NODERESTAB $RESNAME $noderes_install_dir)/$POSTDIR
|
||||
|
||||
logger -t xcat -p local4.info "Install: mounting /post"
|
||||
mkdir /post 2>&1 | logger -t xcat -p local4.info
|
||||
result=`mount -r -o nolock $NFS:$POST_DIR /post 2>&1`
|
||||
RETURNCODE=$?
|
||||
logger -t xcat -p local4.info $result
|
||||
exit $RETURNCODE
|
||||
|
@ -1,54 +0,0 @@
|
||||
#!/bin/ksh
|
||||
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
||||
#(C)IBM Corp
|
||||
#
|
||||
|
||||
. $XCATROOT/lib/functions
|
||||
|
||||
if HOMEFS=$(tabdb $SITETAB homefs 1)
|
||||
then
|
||||
:
|
||||
else
|
||||
echo "$0: homefs not defined in $SITETAB" | logger -t xcat -p local4.warning
|
||||
fi
|
||||
|
||||
if LOCALFS=$(tabdb $SITETAB localfs 1)
|
||||
then
|
||||
:
|
||||
else
|
||||
echo "$0: localfs not defined in $SITETAB" | logger -t xcat -p local4.warning
|
||||
fi
|
||||
|
||||
XCATFS=$MASTER:$XCATROOT
|
||||
|
||||
logger -t xcat -p local4.info "Install: setup NFS mounts in fstab"
|
||||
|
||||
echo "$0: the OS version is $OSVER" | logger -t xcat -p local4.info
|
||||
case "$OSVER" in
|
||||
rhfc[23])
|
||||
XOPTS=",nfsvers=2"
|
||||
;;
|
||||
rh*[45])
|
||||
XOPTS=",nfsvers=2"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "$HOMEFS" -a "$HOMEFS" != "NA" ]
|
||||
then
|
||||
mkdir -p /home
|
||||
# echo "$HOMEFS /home nfs rsize=4096,wsize=4096,timeo=14,intr$XOPTS 1 2" >>/etc/fstab
|
||||
echo "$HOMEFS /home nfs timeo=14,intr$XOPTS 1 2" >>/etc/fstab
|
||||
fi
|
||||
if [ -n "$LOCALFS" -a "$LOCALFS" != "NA" ]
|
||||
then
|
||||
mkdir -p /usr/local
|
||||
# echo "$LOCALFS /usr/local nfs rsize=4096,wsize=4096,timeo=14,intr$XOPTS 1 2" >>/etc/fstab
|
||||
echo "$LOCALFS /usr/local nfs timeo=14,intr$XOPTS 1 2" >>/etc/fstab
|
||||
fi
|
||||
if [ -n "$XCATFS" -a "$XCATFS" != "NA" ]
|
||||
then
|
||||
mkdir -p $XCATROOT
|
||||
# echo "$XCATFS $XCATROOT nfs rsize=4096,wsize=4096,timeo=14,intr$XOPTS 1 2" >>/etc/fstab
|
||||
echo "$XCATFS $XCATROOT nfs timeo=14,intr$XOPTS 1 2" >>/etc/fstab
|
||||
fi
|
||||
|
@ -1,37 +0,0 @@
|
||||
#!/bin/ksh
|
||||
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
||||
#(C)IBM Corp
|
||||
#
|
||||
|
||||
. $XCATROOT/lib/functions
|
||||
|
||||
if TIMESERVERS=$(tabdb $SITETAB timeservers 1)
|
||||
then
|
||||
:
|
||||
else
|
||||
echo "$0: timeservers not defined in $SITETAB" | logger -t xcat -p local4.err
|
||||
exit
|
||||
fi
|
||||
|
||||
T=$(echo $TIMESERVERS | awk -F, '{print $1}')
|
||||
|
||||
if [ -n "$T" -a "$T" != "NA" ]
|
||||
then
|
||||
logger -t xcat -p local4.info "Install: sync clock"
|
||||
ntpdate -bs $T 2>&1 | logger -t xcat -p local4.info
|
||||
|
||||
logger -t xcat "$0: the OS version is $OSVER" -p local4.info
|
||||
case "$OSVER" in
|
||||
rh9|rh[awe]s[34]|rh*5)
|
||||
hwclock -w 2>&1 | logger -t xcat -p local4.info
|
||||
;;
|
||||
rh*)
|
||||
setclock 2>&1 | logger -t xcat -p local4.info
|
||||
;;
|
||||
sles*|suse8*|suse9*|suse10)
|
||||
clock -w 2>&1 | logger -t xcat -p local4.info
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user