diff --git a/xCAT/postscripts/locallibs b/xCAT/postscripts/locallibs deleted file mode 100755 index 23cd45bbc..000000000 --- a/xCAT/postscripts/locallibs +++ /dev/null @@ -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 - - diff --git a/xCAT/postscripts/makesshgkh b/xCAT/postscripts/makesshgkh deleted file mode 100755 index d4e47fa40..000000000 --- a/xCAT/postscripts/makesshgkh +++ /dev/null @@ -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 diff --git a/xCAT/postscripts/mountpost b/xCAT/postscripts/mountpost deleted file mode 100755 index 6046fc350..000000000 --- a/xCAT/postscripts/mountpost +++ /dev/null @@ -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 - diff --git a/xCAT/postscripts/nfsmounts b/xCAT/postscripts/nfsmounts deleted file mode 100755 index 241065c5c..000000000 --- a/xCAT/postscripts/nfsmounts +++ /dev/null @@ -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 - diff --git a/xCAT/postscripts/syncclock b/xCAT/postscripts/syncclock deleted file mode 100755 index 65ef683ff..000000000 --- a/xCAT/postscripts/syncclock +++ /dev/null @@ -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 - -