diff options
| author | Nate Lawson <njl@FreeBSD.org> | 2002-10-18 22:03:39 +0000 |
|---|---|---|
| committer | Nate Lawson <njl@FreeBSD.org> | 2002-10-18 22:03:39 +0000 |
| commit | 76ba4ecdad596812b20ae4c2ff13645605831905 (patch) | |
| tree | 540c29f87f9954dc980102ee2621565072883c36 /usr.sbin/burncd | |
| parent | eb5b0bc42e2bd9517ce418b62a95f540f6625dce (diff) | |
Notes
Diffstat (limited to 'usr.sbin/burncd')
| -rw-r--r-- | usr.sbin/burncd/burncd.8 | 1 | ||||
| -rw-r--r-- | usr.sbin/burncd/burncd.c | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/burncd/burncd.8 b/usr.sbin/burncd/burncd.8 index 47dc84f0455c..520ed9a2c925 100644 --- a/usr.sbin/burncd/burncd.8 +++ b/usr.sbin/burncd/burncd.8 @@ -69,6 +69,7 @@ quiet, do not print progress messages. .It Fl s Ar speed set the speed of the burner device. Defaults to 1. +Specify "max" to use the drive's fastest speed. .It Fl t test write, do not actually write on the media. .It Fl v diff --git a/usr.sbin/burncd/burncd.c b/usr.sbin/burncd/burncd.c index 1d3d2fd540ca..9f3738ef566b 100644 --- a/usr.sbin/burncd/burncd.c +++ b/usr.sbin/burncd/burncd.c @@ -116,7 +116,10 @@ main(int argc, char **argv) break; case 's': - speed = atoi(optarg); + if (strcasecmp("max", optarg) == 0) + speed = CDR_MAX_SPEED; + else + speed = atoi(optarg); if (speed <= 0) errx(EX_USAGE, "Invalid speed: %s", optarg); break; |
