Advertisement
tolikpunkoff

open-winpe

Feb 2nd, 2019
589
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. IMAGE="winpe-test.img"
  4.  
  5. echo "Open WinPE"
  6. losetup /dev/loop0 $IMAGE
  7. MSG=`kpartx -av /dev/loop0`
  8. DEV=`echo $MSG | awk '{print $3}'`
  9. echo $DEV
  10. sleep 5
  11. mount -t vfat /dev/mapper/$DEV /mnt/dos
  12. echo "Complete"
  13. sleep 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement