From 0aa2cfdbb75036e621193ebdcd6cc8f0f6f27131 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 23 Sep 2009 18:01:38 +0000 Subject: [PATCH] -Fix bug where console on SLES systems was not being fixed up if it had encryption support git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4214 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/rcons | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xCAT-client/bin/rcons b/xCAT-client/bin/rcons index 40cf1c8d5..2a7f7746c 100755 --- a/xCAT-client/bin/rcons +++ b/xCAT-client/bin/rcons @@ -29,10 +29,8 @@ fi #parsing CONSERVER=`echo $CONSERVER|cut -d: -f 1` -#NOTE: on SuSE(at least SLES11), SSL is not complied in the application "console"; -#so SuSE doesn't need the configuration in the file .consolerc - -if [ ! -f /etc/SuSE-release ]; then +#Detect console support of SSL, only fixup consolerc if encryption is detected +if ! console -h 2>&1 | grep "encryption not compiled" > /dev/null; then if [ ! -f $HOME/.consolerc ]; then echo 'config * {' > $HOME/.consolerc echo " port 782;" >> $HOME/.consolerc