Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- RDMP="/mnt/ramzes"
- LDRKRNLPATH="./ldrkrnl/"
- LDRKRNLNAME="ldrkrnl.img"
- echo "Making dirs"
- mkdir $RDPATH
- mkdir $RDMP
- mkdir $LDRKRNLPATH
- echo "Extracting RAMDISK..."
- dd bs=1 if=$IMGPATH of=$RDPATH$RDGZNAME skip=464896
- echo "Extracting loader and kernel"
- dd bs=1 if=$IMGPATH of=$LDRKRNLPATH$LDRKRNLNAME count=464896
- echo "Unpacking RAMDISK..."
- cd $RDPATH
- gzip -d $RDGZNAME
- cd ..
- echo "Mount RAMDISK"
- mount -o loop $RDPATH$RDNAME $RDMP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement