daily pastebin goal
75%
SHARE
TWEET

modificate Z.E.S. Image

tolikpunkoff Dec 15th, 2017 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. IMGPATH="./mbootdisk.img"
  4. RDPATH="./ramdisk/"
  5. LDRKRNL="./ldrkrnl/ldrkrnl.img"
  6. RDNAME="ramdisk"
  7. RDMP="/mnt/ramzes"
  8.  
  9. echo "Umount RAMDISK"
  10. umount $RDMP
  11.  
  12. echo "Packing RAMDISK"
  13. cd $RDPATH
  14. gzip -9 $RDNAME
  15. cd ..
  16.  
  17. echo "Make bootdisk"
  18. cat $LDRKRNL $RDPATH$RDNAME".gz" >$IMGPATH
  19. echo "Complete!"
RAW Paste Data
Top