diff options
| author | Murray Stokely <murray@FreeBSD.org> | 2002-04-13 12:44:18 +0000 |
|---|---|---|
| committer | Murray Stokely <murray@FreeBSD.org> | 2002-04-13 12:44:18 +0000 |
| commit | 76ce87ffba344818041c92249fb5922ee9e74ce1 (patch) | |
| tree | 1bba79cb8b8a6a6fbb407e896795df8ae2eae454 | |
| parent | dd5650233b7188e3ba45274b8dc1a4980f1e1d24 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/sysinstall/cdrom.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/cdrom.c b/usr.sbin/sysinstall/cdrom.c index a37937343edb..3b55be7b2ab6 100644 --- a/usr.sbin/sysinstall/cdrom.c +++ b/usr.sbin/sysinstall/cdrom.c @@ -170,6 +170,13 @@ mediaInitCDROM(Device *dev) return FALSE; } } + if ((cp = property_find(cd_attr, "CD_VOLUME")) != NULL) { + dev->volume = atoi(cp); + /* XXX - Sanity check the volume here? */ + msgDebug("CD Volume %d initialized!\n", dev->volume); + } else { + dev->volume = 0; + } } } if (cd_attr) |
