From 560dd57b15075d2fe777969b6d909da2a27b7e24 Mon Sep 17 00:00:00 2001 From: immarvin Date: Fri, 13 Jun 2014 09:06:12 -0700 Subject: [PATCH] replace ifconfig with ip,replace service with systemd --- xCAT/postscripts/setupesx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/xCAT/postscripts/setupesx b/xCAT/postscripts/setupesx index 0e062cd60..d21c290ed 100755 --- a/xCAT/postscripts/setupesx +++ b/xCAT/postscripts/setupesx @@ -1,12 +1,18 @@ # esx setup # example on how to set up ESX. We setup ssh and also add a basic # VLAN configuration + +str_dir_name=`dirname $0` + +. $str_dir_name/xcatlib.sh + logger -t xcat -p local4.info setupesx # Enable SSH access to root and exchange keys sed -e 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config > /etc/ssh/sshd_config.new mv -f /etc/ssh/sshd_config.new /etc/ssh/sshd_config -/etc/init.d/sshd restart +#/etc/init.d/sshd restart +restartservice ssh if [ -r /etc/ssh/sshd_config ] then @@ -43,8 +49,11 @@ cat >/tmp/esxcfg.sh <