Reintroduce open/close of net cards. Clean up ofnet.
This commit is contained in:
parent
382077365b
commit
0bc2cd0f82
12 changed files with 313 additions and 285 deletions
|
@ -195,7 +195,7 @@ GRUB_MOD_FINI(efinet)
|
|||
struct grub_net_card *card, *next;
|
||||
|
||||
FOR_NET_CARDS_SAFE (card, next)
|
||||
if (card->driver && grub_strcmp (card->driver->name, "efinet") == 0)
|
||||
if (card->driver == &efidriver)
|
||||
grub_net_card_unregister (card);
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <grub/file.h>
|
||||
#include <grub/misc.h>
|
||||
#include <grub/env.h>
|
||||
#include <grub/loader.h>
|
||||
|
||||
#include <grub/machine/pxe.h>
|
||||
#include <grub/machine/int.h>
|
||||
|
@ -261,20 +260,8 @@ grub_pxe_send (const struct grub_net_card *dev __attribute__ ((unused)),
|
|||
return 0;
|
||||
}
|
||||
|
||||
struct grub_net_card_driver grub_pxe_card_driver =
|
||||
{
|
||||
.send = grub_pxe_send,
|
||||
.recv = grub_pxe_recv
|
||||
};
|
||||
|
||||
struct grub_net_card grub_pxe_card =
|
||||
{
|
||||
.driver = &grub_pxe_card_driver,
|
||||
.name = "pxe"
|
||||
};
|
||||
|
||||
static grub_err_t
|
||||
grub_pxe_fini_hw (int noreturn __attribute__ ((unused)))
|
||||
grub_pxe_close (const struct grub_net_card *dev __attribute__ ((unused)))
|
||||
{
|
||||
if (pxe_rm_entry)
|
||||
grub_pxe_call (GRUB_PXENV_UNDI_CLOSE,
|
||||
|
@ -285,7 +272,7 @@ grub_pxe_fini_hw (int noreturn __attribute__ ((unused)))
|
|||
}
|
||||
|
||||
static grub_err_t
|
||||
grub_pxe_restore_hw (void)
|
||||
grub_pxe_open (const struct grub_net_card *dev __attribute__ ((unused)))
|
||||
{
|
||||
struct grub_pxe_undi_open *ou;
|
||||
ou = (void *) GRUB_MEMORY_MACHINE_SCRATCH_ADDR;
|
||||
|
@ -294,14 +281,23 @@ grub_pxe_restore_hw (void)
|
|||
grub_pxe_call (GRUB_PXENV_UNDI_OPEN, ou, pxe_rm_entry);
|
||||
|
||||
if (ou->status)
|
||||
{
|
||||
grub_net_card_unregister (&grub_pxe_card);
|
||||
return grub_error (GRUB_ERR_IO, "can't open UNDI");
|
||||
}
|
||||
return grub_error (GRUB_ERR_IO, "can't open UNDI");
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
static void *fini_hnd;
|
||||
struct grub_net_card_driver grub_pxe_card_driver =
|
||||
{
|
||||
.open = grub_pxe_open,
|
||||
.close = grub_pxe_close,
|
||||
.send = grub_pxe_send,
|
||||
.recv = grub_pxe_recv
|
||||
};
|
||||
|
||||
struct grub_net_card grub_pxe_card =
|
||||
{
|
||||
.driver = &grub_pxe_card_driver,
|
||||
.name = "pxe"
|
||||
};
|
||||
|
||||
static void
|
||||
grub_pc_net_config_real (char **device, char **path)
|
||||
|
@ -355,30 +351,12 @@ GRUB_MOD_INIT(pxe)
|
|||
|
||||
grub_pxe_card.default_address.type = GRUB_NET_LINK_LEVEL_PROTOCOL_ETHERNET;
|
||||
|
||||
ou = (void *) GRUB_MEMORY_MACHINE_SCRATCH_ADDR;
|
||||
grub_memset (ou, 0, sizeof (*ou));
|
||||
ou->pkt_filter = 4;
|
||||
grub_pxe_call (GRUB_PXENV_UNDI_OPEN, ou, pxe_rm_entry);
|
||||
|
||||
if (ou->status)
|
||||
return;
|
||||
|
||||
grub_net_card_register (&grub_pxe_card);
|
||||
grub_pc_net_config = grub_pc_net_config_real;
|
||||
fini_hnd = grub_loader_register_preboot_hook (grub_pxe_fini_hw,
|
||||
grub_pxe_restore_hw,
|
||||
GRUB_LOADER_PREBOOT_HOOK_PRIO_DISK);
|
||||
}
|
||||
|
||||
GRUB_MOD_FINI(pxe)
|
||||
{
|
||||
struct grub_net_card *card, *next;
|
||||
|
||||
grub_pc_net_config = 0;
|
||||
grub_pxe_fini_hw (0);
|
||||
grub_net_card_unregister (&grub_pxe_card);
|
||||
FOR_NET_CARDS_SAFE (card, next)
|
||||
if (card->driver && grub_strcmp (card->driver->name, "pxe") == 0)
|
||||
grub_net_card_unregister (card);
|
||||
grub_loader_unregister_preboot_hook (fini_hnd);
|
||||
}
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
*/
|
||||
|
||||
#include <grub/net/netbuff.h>
|
||||
#include <grub/ieee1275/ofnet.h>
|
||||
#include <grub/ieee1275/ieee1275.h>
|
||||
#include <grub/dl.h>
|
||||
#include <grub/net.h>
|
||||
|
@ -25,8 +24,15 @@
|
|||
|
||||
GRUB_MOD_LICENSE ("GPLv3+");
|
||||
|
||||
struct grub_ofnetcard_data
|
||||
{
|
||||
char *path;
|
||||
grub_ieee1275_ihandle_t handle;
|
||||
grub_uint32_t mtu;
|
||||
};
|
||||
|
||||
static grub_err_t
|
||||
card_open (struct grub_net_card *dev)
|
||||
card_open (const struct grub_net_card *dev)
|
||||
{
|
||||
int status;
|
||||
struct grub_ofnetcard_data *data = dev->data;
|
||||
|
@ -44,14 +50,13 @@ card_open (struct grub_net_card *dev)
|
|||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
static grub_err_t
|
||||
card_close (struct grub_net_card *dev)
|
||||
static void
|
||||
card_close (const struct grub_net_card *dev)
|
||||
{
|
||||
struct grub_ofnetcard_data *data = dev->data;
|
||||
|
||||
if (data->handle)
|
||||
grub_ieee1275_close (data->handle);
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
static grub_err_t
|
||||
|
@ -93,8 +98,8 @@ get_card_packet (const struct grub_net_card *dev, struct grub_net_buff *nb)
|
|||
static struct grub_net_card_driver ofdriver =
|
||||
{
|
||||
.name = "ofnet",
|
||||
.init = card_open,
|
||||
.fini = card_close,
|
||||
.open = card_open,
|
||||
.close = card_close,
|
||||
.send = send_card_buffer,
|
||||
.recv = get_card_packet
|
||||
};
|
||||
|
@ -112,39 +117,87 @@ bootp_response_properties[] =
|
|||
{ .name = "bootpreply-packet", .offset = 0x2a},
|
||||
};
|
||||
|
||||
static grub_bootp_t
|
||||
grub_getbootp_real (void)
|
||||
static void
|
||||
grub_ieee1275_net_config_real (const char *devpath, char **device, char **path)
|
||||
{
|
||||
grub_bootp_t packet = grub_malloc (sizeof *packet);
|
||||
char *bootp_response;
|
||||
grub_ssize_t size;
|
||||
unsigned int i;
|
||||
struct grub_net_card *card;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE (bootp_response_properties); i++)
|
||||
if (grub_ieee1275_get_property_length (grub_ieee1275_chosen,
|
||||
bootp_response_properties[i].name,
|
||||
&size) >= 0)
|
||||
break;
|
||||
/* FIXME: Check that it's the right card. */
|
||||
FOR_NET_CARDS (card)
|
||||
{
|
||||
char *bootp_response;
|
||||
char *cardpath;
|
||||
char *canon;
|
||||
|
||||
if (size < 0)
|
||||
return NULL;
|
||||
grub_ssize_t size = -1;
|
||||
unsigned int i;
|
||||
|
||||
bootp_response = grub_malloc (size);
|
||||
if (grub_ieee1275_get_property (grub_ieee1275_chosen,
|
||||
bootp_response_properties[i].name,
|
||||
bootp_response, size, 0) < 0)
|
||||
return NULL;
|
||||
if (card->driver != &ofdriver)
|
||||
continue;
|
||||
|
||||
grub_memcpy (packet, bootp_response + bootp_response_properties[i].offset, sizeof (*packet));
|
||||
grub_free (bootp_response);
|
||||
return packet;
|
||||
cardpath = ((struct grub_ofnetcard_data *) card->data)->path;
|
||||
canon = grub_ieee1275_canonicalise_devname (cardpath);
|
||||
if (grub_strcmp (devpath, canon) != 0)
|
||||
{
|
||||
grub_free (canon);
|
||||
continue;
|
||||
}
|
||||
grub_free (canon);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE (bootp_response_properties); i++)
|
||||
if (grub_ieee1275_get_property_length (grub_ieee1275_chosen,
|
||||
bootp_response_properties[i].name,
|
||||
&size) >= 0)
|
||||
break;
|
||||
|
||||
if (size < 0)
|
||||
return;
|
||||
|
||||
bootp_response = grub_malloc (size);
|
||||
if (!bootp_response)
|
||||
{
|
||||
grub_print_error ();
|
||||
return;
|
||||
}
|
||||
if (grub_ieee1275_get_property (grub_ieee1275_chosen,
|
||||
bootp_response_properties[i].name,
|
||||
bootp_response, size, 0) < 0)
|
||||
return;
|
||||
|
||||
grub_net_configure_by_dhcp_ack (card->name, card, 0,
|
||||
(struct grub_net_bootp_packet *)
|
||||
&bootp_response
|
||||
+ bootp_response_properties[i].offset,
|
||||
size - bootp_response_properties[i].offset,
|
||||
1, device, path);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
static char *
|
||||
find_alias (const char *fullname)
|
||||
{
|
||||
char *ret = NULL;
|
||||
auto int find_alias_hook (struct grub_ieee1275_devalias *alias);
|
||||
|
||||
int find_alias_hook (struct grub_ieee1275_devalias *alias)
|
||||
{
|
||||
if (grub_strcmp (alias->path, fullname) == 0)
|
||||
{
|
||||
ret = grub_strdup (alias->name);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
grub_devalias_iterate (find_alias_hook);
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
grub_ofnet_findcards (void)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
auto int search_net_devices (struct grub_ieee1275_devalias *alias);
|
||||
|
||||
int search_net_devices (struct grub_ieee1275_devalias *alias)
|
||||
|
@ -155,6 +208,7 @@ grub_ofnet_findcards (void)
|
|||
struct grub_net_card *card;
|
||||
grub_ieee1275_phandle_t devhandle;
|
||||
grub_net_link_level_address_t lla;
|
||||
char *shortname;
|
||||
|
||||
ofdata = grub_malloc (sizeof (struct grub_ofnetcard_data));
|
||||
if (!ofdata)
|
||||
|
@ -162,7 +216,7 @@ grub_ofnet_findcards (void)
|
|||
grub_print_error ();
|
||||
return 1;
|
||||
}
|
||||
card = grub_malloc (sizeof (struct grub_net_card));
|
||||
card = grub_zalloc (sizeof (struct grub_net_card));
|
||||
if (!card)
|
||||
{
|
||||
grub_free (ofdata);
|
||||
|
@ -177,11 +231,19 @@ grub_ofnet_findcards (void)
|
|||
if (grub_ieee1275_get_integer_property
|
||||
(devhandle, "max-frame-size", &(ofdata->mtu),
|
||||
sizeof (ofdata->mtu), 0))
|
||||
return grub_error (GRUB_ERR_IO, "Couldn't retrieve mtu size.");
|
||||
{
|
||||
ofdata->mtu = 1500;
|
||||
}
|
||||
|
||||
if (grub_ieee1275_get_property
|
||||
(devhandle, "mac-address", &(lla.mac), 6, 0))
|
||||
return grub_error (GRUB_ERR_IO, "Couldn't retrieve mac address.");
|
||||
if (grub_ieee1275_get_property (devhandle, "mac-address",
|
||||
&(lla.mac), 6, 0)
|
||||
&& grub_ieee1275_get_property (devhandle, "local-mac-address",
|
||||
&(lla.mac), 6, 0))
|
||||
{
|
||||
grub_error (GRUB_ERR_IO, "Couldn't retrieve mac address.");
|
||||
grub_print_error ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
lla.type = GRUB_NET_LINK_LEVEL_PROTOCOL_ETHERNET;
|
||||
card->default_address = lla;
|
||||
|
@ -189,7 +251,11 @@ grub_ofnet_findcards (void)
|
|||
card->driver = NULL;
|
||||
card->data = ofdata;
|
||||
card->flags = 0;
|
||||
card->name = grub_xasprintf ("eth%d", i++);
|
||||
shortname = find_alias (alias->path);
|
||||
card->name = grub_xasprintf ("ofnet_%s", shortname ? : alias->path);
|
||||
grub_free (shortname);
|
||||
|
||||
card->driver = &ofdriver;
|
||||
grub_net_card_register (card);
|
||||
return 0;
|
||||
}
|
||||
|
@ -200,69 +266,18 @@ grub_ofnet_findcards (void)
|
|||
grub_ieee1275_devices_iterate (search_net_devices);
|
||||
}
|
||||
|
||||
static void
|
||||
grub_ofnet_probecards (void)
|
||||
{
|
||||
struct grub_net_card *card;
|
||||
struct grub_net_card_driver *driver;
|
||||
struct grub_net_network_level_interface *inter;
|
||||
grub_bootp_t bootp_pckt;
|
||||
grub_net_network_level_address_t addr;
|
||||
grub_net_network_level_netaddress_t net;
|
||||
bootp_pckt = grub_getbootp ();
|
||||
|
||||
/* Assign correspondent driver for each device. */
|
||||
FOR_NET_CARDS (card)
|
||||
{
|
||||
FOR_NET_CARD_DRIVERS (driver)
|
||||
{
|
||||
if (driver->init (card) == GRUB_ERR_NONE)
|
||||
{
|
||||
card->driver = driver;
|
||||
if (bootp_pckt
|
||||
&& grub_memcmp (bootp_pckt->chaddr, card->default_address.mac, 6) == 0)
|
||||
{
|
||||
addr.type = GRUB_NET_NETWORK_LEVEL_PROTOCOL_IPV4;
|
||||
addr.ipv4 = bootp_pckt->yiaddr;
|
||||
grub_net_add_addr ("bootp_cli_addr", card, addr,
|
||||
card->default_address, 0);
|
||||
FOR_NET_NETWORK_LEVEL_INTERFACES (inter)
|
||||
if (grub_strcmp (inter->name, "bootp_cli_addr") == 0)
|
||||
break;
|
||||
net.type = addr.type;
|
||||
net.ipv4.base = addr.ipv4;
|
||||
net.ipv4.masksize = 24;
|
||||
grub_net_add_route ("bootp-router", net, inter);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
grub_free (bootp_pckt);
|
||||
|
||||
}
|
||||
|
||||
GRUB_MOD_INIT(ofnet)
|
||||
{
|
||||
struct grub_net_card *card;
|
||||
grub_getbootp = grub_getbootp_real;
|
||||
grub_net_card_driver_register (&ofdriver);
|
||||
grub_ofnet_findcards ();
|
||||
grub_ofnet_probecards ();
|
||||
FOR_NET_CARDS (card)
|
||||
if (card->driver == NULL)
|
||||
grub_net_card_unregister (card);
|
||||
grub_ieee1275_net_config = grub_ieee1275_net_config_real;
|
||||
}
|
||||
|
||||
GRUB_MOD_FINI(ofnet)
|
||||
{
|
||||
struct grub_net_card *card;
|
||||
FOR_NET_CARDS (card)
|
||||
if (card->driver && !grub_strcmp (card->driver->name, "ofnet"))
|
||||
{
|
||||
card->driver->fini (card);
|
||||
card->driver = NULL;
|
||||
}
|
||||
grub_net_card_driver_unregister (&ofdriver);
|
||||
grub_getbootp = NULL;
|
||||
struct grub_net_card *card, *next;
|
||||
|
||||
FOR_NET_CARDS_SAFE (card, next)
|
||||
if (card->driver && grub_strcmp (card->driver->name, "ofnet") == 0)
|
||||
grub_net_card_unregister (card);
|
||||
grub_ieee1275_net_config = 0;
|
||||
}
|
||||
|
|
|
@ -25,7 +25,15 @@ send_ethernet_packet (struct grub_net_network_level_interface *inf,
|
|||
grub_memcpy (eth->src, inf->hwaddress.mac, 6);
|
||||
|
||||
eth->type = grub_cpu_to_be16 (ethertype);
|
||||
|
||||
if (!inf->card->opened)
|
||||
{
|
||||
err = GRUB_ERR_NONE;
|
||||
if (inf->card->driver->open)
|
||||
err = inf->card->driver->open (inf->card);
|
||||
if (err)
|
||||
return err;
|
||||
inf->card->opened = 1;
|
||||
}
|
||||
return inf->card->driver->send (inf->card, nb);
|
||||
}
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <grub/term.h>
|
||||
#include <grub/net/ethernet.h>
|
||||
#include <grub/datetime.h>
|
||||
#include <grub/loader.h>
|
||||
|
||||
GRUB_MOD_LICENSE ("GPLv3+");
|
||||
|
||||
|
@ -58,6 +59,7 @@ static struct grub_fs grub_net_fs;
|
|||
static inline void
|
||||
grub_net_network_level_interface_unregister (struct grub_net_network_level_interface *inter)
|
||||
{
|
||||
inter->card->num_ifaces--;
|
||||
*inter->prev = inter->next;
|
||||
if (inter->next)
|
||||
inter->next->prev = inter->prev;
|
||||
|
@ -65,6 +67,24 @@ grub_net_network_level_interface_unregister (struct grub_net_network_level_inter
|
|||
inter->prev = 0;
|
||||
}
|
||||
|
||||
void
|
||||
grub_net_card_unregister (struct grub_net_card *card)
|
||||
{
|
||||
struct grub_net_network_level_interface *inf, *next;
|
||||
FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE(inf, next)
|
||||
if (inf->card == card)
|
||||
grub_net_network_level_interface_unregister (inf);
|
||||
if (card->opened)
|
||||
{
|
||||
if (card->driver->close)
|
||||
card->driver->close (card);
|
||||
card->opened = 0;
|
||||
}
|
||||
grub_list_remove (GRUB_AS_LIST_P (&grub_net_cards),
|
||||
GRUB_AS_LIST (card));
|
||||
}
|
||||
|
||||
|
||||
static inline void
|
||||
grub_net_route_register (struct grub_net_route *route)
|
||||
{
|
||||
|
@ -336,6 +356,7 @@ grub_net_network_level_interface_register (struct grub_net_network_level_interfa
|
|||
grub_register_variable_hook (name, 0, addr_set_env);
|
||||
}
|
||||
|
||||
inter->card->num_ifaces++;
|
||||
inter->prev = &grub_net_network_level_interfaces;
|
||||
inter->next = grub_net_network_level_interfaces;
|
||||
if (inter->next)
|
||||
|
@ -345,7 +366,7 @@ grub_net_network_level_interface_register (struct grub_net_network_level_interfa
|
|||
|
||||
struct grub_net_network_level_interface *
|
||||
grub_net_add_addr (const char *name,
|
||||
const struct grub_net_card *card,
|
||||
struct grub_net_card *card,
|
||||
grub_net_network_level_address_t addr,
|
||||
grub_net_link_level_address_t hwaddress,
|
||||
grub_net_interface_flags_t flags)
|
||||
|
@ -714,6 +735,20 @@ grub_net_fs_close (grub_file_t file)
|
|||
static void
|
||||
receive_packets (struct grub_net_card *card)
|
||||
{
|
||||
if (card->num_ifaces == 0)
|
||||
return;
|
||||
if (!card->opened)
|
||||
{
|
||||
grub_err_t err = GRUB_ERR_NONE;
|
||||
if (card->driver->open)
|
||||
err = card->driver->open (card);
|
||||
if (err)
|
||||
{
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
return;
|
||||
}
|
||||
card->opened = 1;
|
||||
}
|
||||
while (1)
|
||||
{
|
||||
/* Maybe should be better have a fixed number of packets for each card
|
||||
|
@ -926,7 +961,7 @@ parse_dhcp_vendor (const char *name, void *vend, int limit)
|
|||
|
||||
struct grub_net_network_level_interface *
|
||||
grub_net_configure_by_dhcp_ack (const char *name,
|
||||
const struct grub_net_card *card,
|
||||
struct grub_net_card *card,
|
||||
grub_net_interface_flags_t flags,
|
||||
const struct grub_net_bootp_packet *bp,
|
||||
grub_size_t size,
|
||||
|
@ -1042,7 +1077,7 @@ grub_net_configure_by_dhcp_ack (const char *name,
|
|||
|
||||
void
|
||||
grub_net_process_dhcp (struct grub_net_buff *nb,
|
||||
const struct grub_net_card *card)
|
||||
struct grub_net_card *card)
|
||||
{
|
||||
char *name;
|
||||
struct grub_net_network_level_interface *inf;
|
||||
|
@ -1228,6 +1263,7 @@ grub_cmd_bootp (struct grub_command *cmd __attribute__ ((unused)),
|
|||
if (j)
|
||||
ifaces[j].prev = &ifaces[j-1].next;
|
||||
ifaces[j].name = grub_xasprintf ("%s:dhcp_tmp", card->name);
|
||||
card->num_ifaces++;
|
||||
if (!ifaces[j].name)
|
||||
{
|
||||
unsigned i;
|
||||
|
@ -1331,6 +1367,29 @@ static struct grub_fs grub_net_fs =
|
|||
.uuid = NULL,
|
||||
.mtime = NULL,
|
||||
};
|
||||
|
||||
static grub_err_t
|
||||
grub_net_fini_hw (int noreturn __attribute__ ((unused)))
|
||||
{
|
||||
struct grub_net_card *card;
|
||||
FOR_NET_CARDS (card)
|
||||
if (card->opened)
|
||||
{
|
||||
if (card->driver->close)
|
||||
card->driver->close (card);
|
||||
card->opened = 0;
|
||||
}
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
static grub_err_t
|
||||
grub_net_restore_hw (void)
|
||||
{
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
static void *fini_hnd;
|
||||
|
||||
static grub_command_t cmd_addaddr, cmd_deladdr, cmd_addroute, cmd_delroute;
|
||||
static grub_command_t cmd_lsroutes, cmd_lscards, cmd_getdhcp, cmd_bootp;
|
||||
static grub_command_t cmd_dhcp, cmd_lsaddr;
|
||||
|
@ -1367,6 +1426,11 @@ GRUB_MOD_INIT(net)
|
|||
|
||||
grub_fs_register (&grub_net_fs);
|
||||
grub_net_open = grub_net_open_real;
|
||||
fini_hnd = grub_loader_register_preboot_hook (grub_net_fini_hw,
|
||||
grub_net_restore_hw,
|
||||
GRUB_LOADER_PREBOOT_HOOK_PRIO_DISK);
|
||||
grub_net_fini_hw (0);
|
||||
grub_loader_unregister_preboot_hook (fini_hnd);
|
||||
}
|
||||
|
||||
GRUB_MOD_FINI(net)
|
||||
|
@ -1381,4 +1445,5 @@ GRUB_MOD_FINI(net)
|
|||
grub_unregister_command (cmd_getdhcp);
|
||||
grub_fs_unregister (&grub_net_fs);
|
||||
grub_net_open = NULL;
|
||||
grub_loader_unregister_preboot_hook (fini_hnd);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue