Kaynağa Gözat

Rename "boot" to "autoboot"

tags/v0.9.3
Michael Brown 17 yıl önce
ebeveyn
işleme
beb941ed81
3 değiştirilmiş dosya ile 7 ekleme ve 7 silme
  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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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…
İptal
Kaydet