From: Kim, D. <di...@in...> - 2014-06-27 21:10:29
|
Hi Olivier, Can you please update the following file in http://svn.oscar.openclustergroup.org/pkgs/downloads/systemimager-4.3.0.tar.bz2 by adding the code of generating the hex decimal? ./initrd_source/skel/etc/init.d/functions [17:08] thumb: systemimager-4.3.0 $ diff -Naur initrd_source/skel/etc/init.d/functions{,.new} --- initrd_source/skel/etc/init.d/functions 2013-06-13 04:07:49.000000000 -0400 +++ initrd_source/skel/etc/init.d/functions.new 2014-06-27 17:08:39.454084355 -0400 @@ -1404,6 +1404,16 @@ chroot /a/ /tmp/post-install/$POST_INSTALL_SCRIPT || shellout fi done + hex=fconfig eth0 | grep "inet addr" | awk '{print $2}' | awk -F":" '{print $2}' | awk '{ n=split($1,d,"."); for(i=1;i<=n;i++) printf "%02X", d[i]}' + echo "DISPLAY message.txt" > $hex + echo "PROMPT 1" >> $hex + echo "DEFAULT lhd" >> $hex + echo "TIMEOUT 50" >> $hex + echo "" >> $hex + echo "LABEL lhd" >> $hex + echo "LOCALBOOT 0" >> $hex + + tftp $IMAGESERVER -c put $hex /tftpboot/pxelinux.cfg/$hexi else logmsg "No post-install scripts found." fi Regards, -- - DongInn |