From 14097c36eeded85060cfd497b03ff4ee8a32cdbb Mon Sep 17 00:00:00 2001 From: linggao Date: Mon, 21 May 2012 20:10:32 +0000 Subject: [PATCH] restart nw interfaces for netboot and statelite for hardehs postscript git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12852 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/hardeths | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/hardeths b/xCAT/postscripts/hardeths index 730a941b6..eb03eac81 100755 --- a/xCAT/postscripts/hardeths +++ b/xCAT/postscripts/hardeths @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh # pmatch determines if 1st argument string is matched by 2nd argument pattern pmatch () @@ -95,6 +95,13 @@ EOF echo IPADDR=$IPADDR >> $NICFILE echo NETMASK=$NETMASK >> $NICFILE fi + + #for netboot/statelite case, restart the network interface. For diskful installation, it is not necessary because the restart of the network will happen at the first boot. + if [ "$NODESETSTATE" = "netboot" ] || [ "$NODESETSTATE" = "statelite" ] + then + ifdown $nic + ifup $nic + fi done if ( pmatch $OSVER "ubuntu*") @@ -106,3 +113,4 @@ iface lo inet loopback EOF fi +