fix bug 3513481. There was no command 'getent' in AIX.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12169 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-04-10 04:52:26 +00:00
parent 45f6284891
commit dd953a1d17

View File

@ -1,6 +1,10 @@
#!/bin/sh
HOME=`getent passwd $(whoami)|cut -d: -f 6`
export HOME
os=`uname`
if [ "$os" == "Linux" ]; then
HOME=`getent passwd $(whoami)|cut -d: -f 6`
export HOME
fi
if [ -z "$1" ] || [ "$1" = "-h" ]; then
echo "rcons - remotely accesses the serial console of a node"
echo "rcons <singlenode> [conserver] [-f]"