Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- SYSLINUXNAME="syslinux-4.02"
- SYSLINUXADDR="https://www.kernel.org/pub/linux/utils/boot/syslinux/4.xx/$SYSLINUXNAME.tar.gz" #на Хабре использовали эту, пока оставим
- WORKDIR="/tmp"
- SERVERDIR="/home/pxe/tftp"
- cd $WORKDIR
- wget $SYSLINUXADDR
- tar -xf "$SYSLINUXNAME.tar.gz"
- cd "$SYSLINUXNAME/"
- find ./ -name "memdisk" -type f|xargs -I {} cp '{}' $SERVERDIR
- find ./ -name "pxelinux.0"|xargs -I {} cp '{}' $SERVERDIR
- find ./ -name "*.c32"|xargs -I {} cp '{}' $SERVERDIR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement