File: makefloppy

package info (click to toggle)
xloadimage 4.1-3
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 2,580 kB
  • ctags: 3,902
  • sloc: ansic: 35,724; makefile: 410; asm: 284; sh: 107
file content (14 lines) | stat: -rwxr-xr-x 253 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
echo "Insert an empty floppy disk and push a key.  If you want to abort"
echo "the process, type q..."
read answer

if [ "$answer" == "q" ]; then
  exit 1
fi

# format the floppy
fdformat -f

# tar the stuff onto the floppy
tar cf /dev/fd0 $*