Advertisement
tolikpunkoff

modificate Z.E.S. Image

Dec 15th, 2017
563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  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!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement