Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Boot based on MAC
2014-05-19, 11:28
Post: #3
RE: Boot based on MAC
Thank you! The devil's in the details Wink

Working perfectly now, magic.

Here's the script for anyone who wants to do anything similar:

Code:
#!ipxe

ifopen

:mac-check
iseq ${netX/mac} ec:a8:6b:f5:45:94 && goto server2 ||                   #PC10

:server1
imgfree
echo Attempting to boot from Server 1
kernel tftp://192.168.1.11/ltsp/i386/vmlinuz root=/dev/nbd0 init=/sbin/init-ltsp vt.handoff=7 nbdroot=192.168.1.11:ltsp_i386 || goto server2
initrd tftp://192.168.1.11/ltsp/i386/initrd.img || goto server2
boot ||

:server2
imgfree
echo Attempting to boot from Server 2
kernel tftp://192.168.1.12/ltsp/i386/vmlinuz root=/dev/nbd0 init=/sbin/init-ltsp vt.handoff=7 nbdroot=192.168.1.12:ltsp_i386 || goto server1
initrd tftp://192.168.1.12/ltsp/i386/initrd.img || goto server1
boot || goto server1
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Boot based on MAC - gdi2k - 2014-04-21, 12:11
RE: Boot based on MAC - robinsmidsrod - 2014-05-19, 09:13
RE: Boot based on MAC - gdi2k - 2014-05-19 11:28



User(s) browsing this thread: 2 Guest(s)