Fix older RHEL5 stateless

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8980 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-03-03 20:17:25 +00:00
parent eb6c1f47d9
commit 8cd38a0c7f

View File

@ -974,11 +974,11 @@ fi
export IFACE=\$IFACE
netstart
netstart \$IFACE
while ! ifconfig | grep inet; do
echo -e "\${RED}Failed to acquire address, retrying \${RESET}"
sleep 5
netstart
netstart \$IFACE
done
ifconfig lo 127.0.0.1
ifconfig lo up
@ -1236,7 +1236,7 @@ EOMS
open($inifile,">"."/tmp/xcatinitrd.$$/bin/netstart");
print $inifile "#!/sbin/nash\n";
print $inifile "network --device \$IFACE --bootproto dhcp\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");