memtest86+ PXE boot

#!/bin/bash
 
# check for current version
# http://www.memtest.org/#downiso
 
URL=http://www.memtest.org/download/4.00/memtest86+-4.00.bin.gz  
 
wget ${URL} -P /tmp
gzip -d /tmp/memtest86+-*.bin.gz
 
mkdir /var/lib/tftpboot/memtest
mv /tmp/memtest86+-*.bin /var/lib/tftpboot/memtest
cd /var/lib/tftpboot/memtest
ln -s memtest86+-*.bin memtest86+
 
echo "confiure tftpboot..." 
cat <<EOF>  /tftpboot/pxelinux.cfg/memtest86+.conf
LABEL linux
   MENU LABEL memtest86+
   KERNEL /memtest/memtest86+
EOF
 
echo "MENU INCLUDE pxelinux.cfg/memtest86+.conf" >> /tftpboot/pxelinux.cfg/default

Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!