dotfiles

My personal dotfiles 💠️

mkimg (335B)

      1 #!/bin/sh
      2 # Creates a MS-DOS compatible disk image
      3 # 
      4 # Copyright (C) 2020 Pablo Emilio Escobar Gaviria.
      5 # Free use of this software is granted under the terms of the GPL-3.0 License.
      6 
      7 case "$1" in
      8   -h|--help)
      9     echo 'Usage: mkimg FILE'
     10     ;;
     11   *)
     12     dd if=/dev/zero of="$1" count=1440 bs=1k
     13     /sbin/mkfs.msdos "$1"
     14     ;;
     15 esac