diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-02-11 13:02:52 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-02-11 14:11:22 +0000 |
commit | 544a6a9769112661b7831e114db4bf06c13baa67 (patch) | |
tree | 57f179d752eea4c839e52740bfeafc7843476230 /src/usr | |
parent | 1c3fb3c61ae4af8b8ccf92afc90b48dfc0b597c7 (diff) | |
download | ipxe-544a6a9769112661b7831e114db4bf06c13baa67.tar.gz |
[build] Use PRODUCT_SHORT_NAME for end-user visible strings
Use PRODUCT_SHORT_NAME instead of a hardcoded "iPXE" for strings which
are typically shown in the user interface.
Note that this only allows for customisation of the user interface.
Where the "iPXE" string serves a technical purpose (such as in the
HTTP User-Agent), the string cannot be customised.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/autoboot.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index 2e52c87b9..42718ee1c 100644 --- a/src/usr/autoboot.c +++ b/src/usr/autoboot.c @@ -42,6 +42,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <usr/prompt.h> #include <usr/autoboot.h> #include <config/general.h> +#include <config/branding.h> /** @file * @@ -522,7 +523,8 @@ static int shell_banner ( void ) { /* Prompt user */ printf ( "\n" ); - return ( prompt ( "Press Ctrl-B for the iPXE command line...", + return ( prompt ( "Press Ctrl-B for the " PRODUCT_SHORT_NAME + " command line...", ( ( BANNER_TIMEOUT * TICKS_PER_SEC ) / 10 ), CTRL_B ) == 0 ); } @@ -549,10 +551,10 @@ void ipxe ( struct net_device *netdev ) { * do so. * */ - printf ( NORMAL "\n\n%s\n" BOLD "iPXE %s" + printf ( NORMAL "\n\n" PRODUCT_NAME "\n" BOLD PRODUCT_SHORT_NAME " %s" NORMAL " -- Open Source Network Boot Firmware -- " CYAN "http://ipxe.org" NORMAL "\n" - "Features:", product_name, product_version ); + "Features:", product_version ); for_each_table_entry ( feature, FEATURES ) printf ( " %s", feature->name ); printf ( "\n" ); |