Quellcode durchsuchen

[shell] Enable "shell" command even when BANNER_TIMEOUT is zero

Setting BANNER_TIMEOUT to zero removes the only symbol reference to
shell.o, causing the "shell" command to become unavailable.

Add SHELL_CMD in config/general.h (enabled by default) which will
explicitly drag in shell.o regardless of the value of BANNER_TIMEOUT.

Reported-by: Julian Brost <julian@0x4a42.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown vor 7 Jahren
Ursprung
Commit
7054468d56
2 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 3
    0
      src/config/config.c
  2. 1
    0
      src/config/general.h

+ 3
- 0
src/config/config.c Datei anzeigen

@@ -248,6 +248,9 @@ REQUIRE_OBJECT ( cpuid_cmd );
248 248
 #ifdef SYNC_CMD
249 249
 REQUIRE_OBJECT ( sync_cmd );
250 250
 #endif
251
+#ifdef SHELL_CMD
252
+REQUIRE_OBJECT ( shell );
253
+#endif
251 254
 #ifdef NSLOOKUP_CMD
252 255
 REQUIRE_OBJECT ( nslookup_cmd );
253 256
 #endif

+ 1
- 0
src/config/general.h Datei anzeigen

@@ -134,6 +134,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
134 134
 #define MENU_CMD		/* Menu commands */
135 135
 #define LOGIN_CMD		/* Login command */
136 136
 #define SYNC_CMD		/* Sync command */
137
+#define SHELL_CMD		/* Shell command */
137 138
 //#define NSLOOKUP_CMD		/* DNS resolving command */
138 139
 //#define TIME_CMD		/* Time commands */
139 140
 //#define DIGEST_CMD		/* Image crypto digest commands */

Laden…
Abbrechen
Speichern