Port forward fix for netstart issue with RHEL statelesess

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9879 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-06-21 19:31:16 +00:00
parent 52a1e4c5ff
commit ba2821b018

View File

@ -991,6 +991,7 @@ if [ -z "\$IFACE" ]; then
fi
export IFACE=\$IFACE
echo network --device \$IFACE --bootproto dhcp >> /bin/netstart
netstart \$IFACE
while ! ifconfig | grep inet; do
@ -1254,7 +1255,6 @@ EOMS
open($inifile,">"."/tmp/xcatinitrd.$$/bin/netstart");
print $inifile "#!/sbin/nash\n";
print $inifile "network --device \${1} --bootproto dhcp\n"; #must not use env, doesn't work in older RH
close($inifile);
chmod(0755,"/tmp/xcatinitrd.$$/init");
chmod(0755,"/tmp/xcatinitrd.$$/bin/netstart");