Advertisement
tolikpunkoff

syslinux-install.bash

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