File: makefloppy

package info (click to toggle)
xloadimage 4.1-25
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,820 kB
  • sloc: ansic: 36,084; asm: 284; makefile: 282; sh: 280
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 $*