updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / grub-gfx / i2o.patch
blob2af846c90f5eacb44606d62b8645f3556eba4a8a
1 Only in grub-0.94/docs: grub.info
2 Only in grub-0.94/docs: multiboot.info
3 diff -ur grub-0.94/lib/device.c grub-0.94.new/lib/device.c
4 --- grub-0.94/lib/device.c 2004-05-07 04:50:36.375238696 +0200
5 +++ grub-0.94.new/lib/device.c 2004-05-07 04:48:57.611253104 +0200
6 @@ -419,6 +419,12 @@
8 sprintf (name, "/dev/rd/c%dd%d", controller, drive);
11 +static void
12 +get_i2o_disk_name (char *name, int unit)
14 + sprintf (name, "/dev/i2o/hd%c", unit + 'a');
16 #endif
18 /* Check if DEVICE can be read. If an error occurs, return zero,
19 @@ -789,6 +795,26 @@
24 + /* I2O disks. */
25 + for (i = 0; i < 8; i++)
26 + {
27 + char name[16];
29 + get_i2o_disk_name (name, i);
30 + if (check_device (name))
31 + {
32 + (*map)[num_hd + 0x80] = strdup (name);
33 + assert ((*map)[num_hd + 0x80]);
35 + /* If the device map file is opened, write the map. */
36 + if (fp)
37 + fprintf (fp, "(hd%d)\t%s\n", num_hd, name);
39 + num_hd++;
40 + }
41 + }
43 #endif /* __linux__ */
45 /* OK, close the device map file if opened. */