File: floppy

package info (click to toggle)
debian-installer-utils 1.155
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: sh: 1,001; ansic: 160; makefile: 62
file content (14 lines) | stat: -rw-r--r-- 220 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
protocol_fetch() {
	local FILE="/media/${1#floppy://*}"

	mountmedia floppy || true
	touch /var/run/preseed-usedfloppy

	if [ ! -e "$FILE" ]; then
		return 4
	elif ! cp "$FILE" $2; then
		return 1
	else
		return 0
	fi
}