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/trunk@11945 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0014099d9c
commit
13765372a6
@ -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]"
|
||||
|
Loading…
x
Reference in New Issue
Block a user