From 68eaaebade29645202cbd69ef0f3ec1e5d09f3a8 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 31 Oct 2011 19:53:30 +0000 Subject: [PATCH] Add what to change in the script to comments and add error processing defect 3430879 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10935 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/configeth | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/configeth b/xCAT/postscripts/configeth index 7427904e4..e13fdcb66 100755 --- a/xCAT/postscripts/configeth +++ b/xCAT/postscripts/configeth @@ -2,7 +2,16 @@ # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html # Sample xCAT post script for configuring eth1 based on eth0 settings and -# some conventions. This scripts works for both diskfull installs and diskless boots. +# some conventions. +# This scripts works for both diskfull installs, diskless boots on AIX or Linux. +# To use: +# On Linux: +# Modify $nic in the script to desired nic value +# On AIX: +# Modify my $nic_num = 0; change 0 to new nic value +# For both Linux and AIX +# Modify $gateway to correct value throughout script +# use Socket; @@ -145,6 +154,8 @@ sub runcmd { my $rc = $? >> 8; if ($rc) { system("logger -t xcat 'configeth: command $cmd failed with rc $rc: " . join('',@output) . "'"); + my $errout= "configeth: command $cmd failed with rc $rc."; + echo $errout; exit $rc; } }