Skip to content

Commit

Permalink
add pxe_script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesits committed Jan 16, 2018
1 parent 900f846 commit 74af58d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "xmr-stak"]
path = xmr-stak
url = https://github.com/fireice-uk/xmr-stak.git
[submodule "ipxe"]
path = ipxe
url = git://git.ipxe.org/ipxe.git
23 changes: 17 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,25 @@ mkdir -p $workdir
# build iPXE
! source $basedir/config/pxe.sh
cat > $workdir/boot.cfg.head <<-EOF
#!ipxe
set http_root ${pxe_http_root}
set xmr_http_root ${xmr_stak_http_root}
EOF
#!ipxe
set http_root ${pxe_http_root}
set xmr_http_root ${xmr_stak_http_root}
EOF
cat $workdir/boot.cfg.head $confdir/boot.cfg > $output_dir/boot.cfg

exit 0
cat > $workdir/ipxe_embed.ipxe <<-EOF
#!ipxe
dhcp
boot ${pxe_script}
EOF

pushd $basedir/ipxe/src
! git reset --hard
make bin-x86_64-efi/ipxe.efi EMBED=$workdir/ipxe_embed.ipxe
cp bin-x86_64-efi/ipxe.efi $output_dir/ipxe.efi
! git reset --hard
popd

# build xmr-stak
pushd $basedir/xmr-stak
Expand Down
1 change: 1 addition & 0 deletions config/pxe.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

pxe_script=http://192.168.88.16/
pxe_http_root=http://192.168.88.16/static
xmr_stak_http_root=http://192.168.88.16/xmr-stak

1 change: 1 addition & 0 deletions ipxe
Submodule ipxe added at 70189a

0 comments on commit 74af58d

Please sign in to comment.