From 86fd3ae7b032e8d86e39be55f04ff0fdd78ad7f4 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 23 Oct 2012 16:22:43 +0000 Subject: [PATCH] Put a check in so that if remoteshell is run on the MN, it just exits git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14102 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/remoteshell | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index 3bb02ffdf..ec08cce70 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -2,6 +2,11 @@ # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html #(C)IBM Corp # +# if on the Management Node, exit +if [ -e /etc/xCATMN ]; then + logger -t xcat -p local4.info "Running on the Management Node , exiting " + exit 0 +fi # Linux or if AIX call aixremoteshell -d if [ "$(uname -s)" = "AIX" ]; then ./aixremoteshell -d 2>&1