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
This commit is contained in:
parent
794760bf25
commit
14097c36ee
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user