From 3a0bf4f01835c325d7e82ce9e8014e0eaf8ea19e Mon Sep 17 00:00:00 2001 From: murray Date: Sat, 13 Apr 2002 12:44:18 +0000 Subject: Read the CD_VOLUME property from the cdrom.inf file and use it to initialize the volume ID for the media device in use. --- usr.sbin/sysinstall/cdrom.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'usr.sbin/sysinstall') diff --git a/usr.sbin/sysinstall/cdrom.c b/usr.sbin/sysinstall/cdrom.c index a379373..3b55be7 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) -- cgit v1.1