source: trunk/cut.sh @ 678

Last change on this file since 678 was 555, checked in by nicolas.van.phan@…, 6 years ago

Add script to load almos on sd card

  • Property svn:executable set to *
File size: 269 bytes
Line 
1#!/bin/bash -x
2# THIS SCRIPT MUST BE EXECUTED IN hdd/
3# USAGE : sudo ./cut.sh /dev/sdx (with x the device of the sd card)
4echo $1
5rm img.dmg
6dd if=virt_hdd.dmg | pv | dd of=img.dmg bs=512 count=10000
7sudo dd if=img.dmg | pv | sudo dd of=$1
8sudo umount $1
9sudo eject $1
Note: See TracBrowser for help on using the repository browser.