linux.c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * GRUB -- GRand Unified Bootloader
  3. * Copyright (C) 2018 Free Software Foundation, Inc.
  4. *
  5. * GRUB is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * GRUB is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #include <grub/command.h>
  19. #include <grub/dl.h>
  20. #include <grub/lib/cmdline.h>
  21. GRUB_MOD_LICENSE ("GPLv3+");
  22. static grub_err_t
  23. grub_cmd_initrd (grub_command_t cmd __attribute__ ((unused)),
  24. int argc __attribute__ ((unused)),
  25. char *argv[] __attribute__ ((unused)))
  26. {
  27. grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET, N_("Linux not supported yet"));
  28. return grub_errno;
  29. }
  30. static grub_err_t
  31. grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
  32. int argc __attribute__ ((unused)),
  33. char *argv[] __attribute__ ((unused)))
  34. {
  35. grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET, N_("Linux not supported yet"));
  36. return grub_errno;
  37. }
  38. static grub_command_t cmd_linux, cmd_initrd;
  39. GRUB_MOD_INIT (linux)
  40. {
  41. cmd_linux = grub_register_command ("linux", grub_cmd_linux, 0,
  42. N_("Load Linux."));
  43. cmd_initrd = grub_register_command ("initrd", grub_cmd_initrd, 0,
  44. N_("Load initrd."));
  45. }
  46. GRUB_MOD_FINI (linux)
  47. {
  48. grub_unregister_command (cmd_linux);
  49. grub_unregister_command (cmd_initrd);
  50. }