note about 64 bit images
[fsf-member-card-builder.git] / live-usb-loader.sh
index b41f2791a1a09f7e45dc7d6a12ae12883190c54c..1e74610db0be8a9461dc373b6363a2ea50dd9ac8 100755 (executable)
 set -e
 
 usage(){
+echo
 echo You need to run this script as root
 echo Usage: sudo $0 distro.iso /dev/sdX
 echo Example: sudo $0 foobar_5.0_i386.iso /dev/sdb
 echo
 echo WARNING!: this script will delete all data on the whole disk you pass as the second parameter. Make sure it is your USB drive and not your internal hard drive!
 echo ANOTHER WARNING!: This script can bite your dog. Use it with care, backup your data.
+echo
 exit 1
 }
 
@@ -72,6 +74,6 @@ syslinux ${DEV}1
 dd conv=notrunc if=/usr/lib/syslinux/mbr.bin bs=440 count=1 of=$DEV
 parted $DEV set 1 boot on
 
-eject $DEV
+#eject $DEV
 sync