Browse Source

Rename "boot" to "autoboot"

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
beb941ed81
3 changed files with 7 additions and 7 deletions
  1. 1
    1
      src/config.h
  2. 2
    2
      src/core/config.c
  3. 4
    4
      src/hci/commands/autoboot_cmd.c

+ 1
- 1
src/config.h View File

@@ -116,7 +116,7 @@
116 116
  * Command-line commands to include
117 117
  *
118 118
  */
119
-#define	BOOT_CMD		/* Automatic booting */
119
+#define	AUTOBOOT_CMD		/* Automatic booting */
120 120
 #define	NVO_CMD			/* Non-volatile option storage commands */
121 121
 #define	CONFIG_CMD		/* Option configuration console */
122 122
 #define	IFMGMT_CMD		/* Interface management commands */

+ 2
- 2
src/core/config.c View File

@@ -145,8 +145,8 @@ REQUIRE_OBJECT ( script );
145 145
  * Drag in all requested commands
146 146
  *
147 147
  */
148
-#ifdef BOOT_CMD
149
-REQUIRE_OBJECT ( boot_cmd );
148
+#ifdef AUTOBOOT_CMD
149
+REQUIRE_OBJECT ( autoboot_cmd );
150 150
 #endif
151 151
 #ifdef NVO_CMD
152 152
 REQUIRE_OBJECT ( nvo_cmd );

src/hci/commands/boot_cmd.c → src/hci/commands/autoboot_cmd.c View File

@@ -2,7 +2,7 @@
2 2
 #include <gpxe/command.h>
3 3
 #include <usr/autoboot.h>
4 4
 
5
-static int boot_exec ( int argc, char **argv ) {
5
+static int autoboot_exec ( int argc, char **argv ) {
6 6
 
7 7
 	if ( argc != 1 ) {
8 8
 		printf ( "Usage:\n"
@@ -19,7 +19,7 @@ static int boot_exec ( int argc, char **argv ) {
19 19
 	return 1;
20 20
 }
21 21
 
22
-struct command boot_command __command = {
23
-	.name = "boot",
24
-	.exec = boot_exec,
22
+struct command autoboot_command __command = {
23
+	.name = "autoboot",
24
+	.exec = autoboot_exec,
25 25
 };

Loading…
Cancel
Save