Advertisement
Guest User

update kernel multiboot

a guest
Feb 3rd, 2017
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # We're passed the version of the kernel being installed
  4. inst_kern=$1
  5.  
  6. BOOT_DIR="/media/boot"
  7. MULTIBOOT_DIR="${BOOT_DIR}"/multiboot
  8.  
  9. mv "${MULTIBOOT_DIR}"/uInitrd.linux "${MULTIBOOT_DIR}"/uInitrd.linux.bak
  10. mv "${MULTIBOOT_DIR}"/Image.linux "${MULTIBOOT_DIR}"/Image.linux.bak
  11. mv "${MULTIBOOT_DIR}"/meson64_odroidc2.dtb.linux "${MULTIBOOT_DIR}"/meson64_odroidc2.dtb.linux.bak
  12.  
  13. cp "${BOOT_DIR}"/uInitrd "${MULTIBOOT_DIR}"/uInitrd.linux
  14. cp "${BOOT_DIR}"/Image "${MULTIBOOT_DIR}"/Image.linux
  15. cp "${BOOT_DIR}"/meson64_odroidc2.dtb "${MULTIBOOT_DIR}"/meson64_odroidc2.dtb.linux
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement