Changeset d98e625fcbafcfffdcef3932cf6d267a8b698789
- Timestamp:
- 11/01/09 23:55:11 (2 years ago)
- Author:
- Pierre-Alexandre Meyer <pierre@…>
- Children:
- ad501c9ca99dad2f52af62399c3ff7da9bfe09b5
- Parents:
- 821b545a82891ee64e407c981f6562089e9c524e
- git-committer:
- Pierre-Alexandre Meyer <pierre@mouraf.org> / 2009-11-01T15:55:11Z-0800
- Message:
-
hdt: add reboot entry (MENU)
Add a reboot entry to reboot the system. Uses reboot.c32 behind the scenes.
Signed-off-by: Pierre-Alexandre Meyer <pierre@…>
- Location:
- com32/hdt
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r47ac91
|
rd98e62
|
|
| 73 | 73 | sizeof(hardware->memtest_label)); |
| 74 | 74 | convert_isolinux_filename(hardware->memtest_label,hardware); |
| | 75 | } else if (!strncmp(argv[i], "reboot=", 7)) { |
| | 76 | strncpy(hardware->reboot_label, argv[i] + 7, |
| | 77 | sizeof(hardware->reboot_label)); |
| | 78 | convert_isolinux_filename(hardware->reboot_label,hardware); |
| 75 | 79 | } |
| 76 | 80 | } |
| … |
… |
|
| 134 | 138 | sizeof hardware->modules_alias_path); |
| 135 | 139 | memset(hardware->memtest_label, 0, sizeof hardware->memtest_label); |
| | 140 | memset(hardware->reboot_label, 0, sizeof hardware->reboot_label); |
| 136 | 141 | strcat(hardware->pciids_path, "pci.ids"); |
| 137 | 142 | strcat(hardware->modules_pcimap_path, "modules.pcimap"); |
| 138 | 143 | strcat(hardware->modules_alias_path, "modules.alias"); |
| 139 | 144 | strcat(hardware->memtest_label, "memtest"); |
| | 145 | strcat(hardware->reboot_label, "reboot.c32"); |
| 140 | 146 | } |
| 141 | 147 | |
-
|
r6e20c1
|
rd98e62
|
|
| 163 | 163 | char pciids_path[255]; |
| 164 | 164 | char memtest_label[255]; |
| | 165 | char reboot_label[255]; |
| 165 | 166 | }; |
| 166 | 167 | |
-
|
r111fe2
|
rd98e62
|
|
| 293 | 293 | add_item("<A>bout", "About Menu", OPT_SUBMENU, NULL, |
| 294 | 294 | hdt_menu->about_menu.menu); |
| | 295 | add_item("<R>eboot", "Reboot", OPT_RUN, hardware->reboot_label, 0); |
| 295 | 296 | add_item("E<x>it","Exit", OPT_EXITMENU,NULL,0); |
| 296 | 297 | hdt_menu->main_menu.items_count++; |