This commit is contained in:
root 2023-04-12 20:27:06 +00:00
parent 18b95ca76d
commit db3df35baa
3 changed files with 19 additions and 1 deletions

10
config-full.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
. ./settings.sh
cat ./resources/default-full | \
sed -e "s/__NFSSERVERIP__/${NFSSERVERIP}/g" \
-e "s/__MENUTITLE__/${MENUTUTLE}/g" \
-e "s/__MENUBACKGROUND__/${MENUBACKGROUND}/g" > ${TFTP}/pxelinux.cfg/default
cp -av ./free ${TFTP}/
cp -av ./non-free ${TFTP}/

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
apt install -y git tftpd-hpa nfs-kernel-server lighttpd ipxe pxelinux syslinux syslinux-common apt install -y git tftpd-hpa nfs-kernel-server lighttpd ipxe pxelinux syslinux syslinux-common sudo

8
settings.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
TFTP=/srv/tftp
NFSSERVERIP=192.168.75.3
MENUTUTLE="Sample Title Text"
MENUBACKGROUND="splash.png"