e5b88427dd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@236 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
17 lines
424 B
Bash
Executable File
17 lines
424 B
Bash
Executable File
#!/bin/sh
|
|
CONSERVER=`nodels $1 nodehm.conserver`
|
|
if [ -z $CONSERVER ]; then
|
|
CONSERVER=$XCATHOST
|
|
fi
|
|
if [ -z $CONSERVER ]; then
|
|
CONSERVER=localhost
|
|
fi
|
|
if [ ! -f $HOME/.consolerc ]; then
|
|
echo 'config * {' > $HOME/.consolerc
|
|
echo " sslauthority $HOME/.xcat/ca.pem;" >> $HOME/.consolerc
|
|
echo " sslcredentials $HOME/.xcat/client-cred.pem;" >> $HOME/.consolerc
|
|
echo '}' >> $HOME/.consolerc
|
|
fi
|
|
|
|
exec console -M $CONSERVER $1
|