daily pastebin goal
35%
SHARE
TWEET

syslinux-install.bash

tolikpunkoff Mar 7th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top