337 |
} |
} |
338 |
#endif |
#endif |
339 |
|
|
|
/* (module|initrd) FILE [ARGS] */ |
|
|
static void |
|
|
pupa_rescue_cmd_module (int argc, char *argv[]) |
|
|
{ |
|
|
pupa_loader_load_module (argc, argv); |
|
|
} |
|
|
|
|
340 |
/* root [DEVICE] */ |
/* root [DEVICE] */ |
341 |
static void |
static void |
342 |
pupa_rescue_cmd_root (int argc, char *argv[]) |
pupa_rescue_cmd_root (int argc, char *argv[]) |
600 |
"show the contents of a file"); |
"show the contents of a file"); |
601 |
pupa_rescue_register_command ("help", pupa_rescue_cmd_help, |
pupa_rescue_register_command ("help", pupa_rescue_cmd_help, |
602 |
"show this message"); |
"show this message"); |
|
pupa_rescue_register_command ("initrd", pupa_rescue_cmd_module, |
|
|
"load an initrd"); |
|
603 |
pupa_rescue_register_command ("ls", pupa_rescue_cmd_ls, |
pupa_rescue_register_command ("ls", pupa_rescue_cmd_ls, |
604 |
"list devices or files"); |
"list devices or files"); |
|
pupa_rescue_register_command ("module", pupa_rescue_cmd_module, |
|
|
"load an OS module"); |
|
605 |
pupa_rescue_register_command ("root", pupa_rescue_cmd_root, |
pupa_rescue_register_command ("root", pupa_rescue_cmd_root, |
606 |
"set the root device"); |
"set the root device"); |
607 |
pupa_rescue_register_command ("dump", pupa_rescue_cmd_dump, |
pupa_rescue_register_command ("dump", pupa_rescue_cmd_dump, |