summaryrefslogtreecommitdiffstats
path: root/src/hci/commands
diff options
context:
space:
mode:
authorMichael Brown2006-12-20 12:42:48 +0100
committerMichael Brown2006-12-20 12:42:48 +0100
commitcbeec25662029a4362ca484805d60264f9dca8d6 (patch)
tree289b37727ad4136931ea67e1befffc557fbe26cf /src/hci/commands
parentAdd EIO. (diff)
downloadipxe-cbeec25662029a4362ca484805d60264f9dca8d6.tar.gz
ipxe-cbeec25662029a4362ca484805d60264f9dca8d6.tar.xz
ipxe-cbeec25662029a4362ca484805d60264f9dca8d6.zip
settings_ui() now returns a status code.
Diffstat (limited to 'src/hci/commands')
-rw-r--r--src/hci/commands/config_cmd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/hci/commands/config_cmd.c b/src/hci/commands/config_cmd.c
index fc21c67f9..a15593913 100644
--- a/src/hci/commands/config_cmd.c
+++ b/src/hci/commands/config_cmd.c
@@ -11,6 +11,7 @@ extern struct nvo_block *ugly_nvo_hack;
static int config_exec ( int argc, char **argv ) {
struct config_context dummy_context;
+ int rc;
if ( argc != 1 ) {
printf ( "Usage: %s\n"
@@ -24,7 +25,11 @@ static int config_exec ( int argc, char **argv ) {
}
dummy_context.options = ugly_nvo_hack->options;
- settings_ui ( &dummy_context );
+ if ( ( rc = settings_ui ( &dummy_context ) ) != 0 ) {
+ printf ( "Could not save settings: %s\n",
+ strerror ( rc ) );
+ return 1;
+ }
return 0;
}