Have rcons check and set $HOME since sudo won't give an accurate looking home directory

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@11963 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-03-23 12:55:42 +00:00
parent bd4af1093f
commit 0deb64b53a

View File

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