From: <jbj...@us...> - 2011-03-03 20:17:31
|
Revision: 8980 http://xcat.svn.sourceforge.net/xcat/?rev=8980&view=rev Author: jbjohnso Date: 2011-03-03 20:17:25 +0000 (Thu, 03 Mar 2011) Log Message: ----------- Fix older RHEL5 stateless Modified Paths: -------------- xcat-core/trunk/xCAT-server/share/xcat/netboot/rh/genimage Modified: xcat-core/trunk/xCAT-server/share/xcat/netboot/rh/genimage =================================================================== --- xcat-core/trunk/xCAT-server/share/xcat/netboot/rh/genimage 2011-03-03 19:31:53 UTC (rev 8979) +++ xcat-core/trunk/xCAT-server/share/xcat/netboot/rh/genimage 2011-03-03 20:17:25 UTC (rev 8980) @@ -974,11 +974,11 @@ 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 @@ 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"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |