From 3069587239cfd1750a832d1cc61c9c65fd2cbd36 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 12 May 2017 07:14:18 +0200 Subject: [PATCH] rc: unify yes/no prompts and indicate their default option when blank --- src/etc/inc/console.inc | 10 +++++----- src/etc/rc.initial.defaults | 4 ++-- src/etc/rc.initial.halt | 2 +- src/etc/rc.initial.reboot | 2 +- src/etc/rc.initial.restore | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/etc/inc/console.inc b/src/etc/inc/console.inc index 4e0da63ce..a3ab3ecdc 100644 --- a/src/etc/inc/console.inc +++ b/src/etc/inc/console.inc @@ -53,7 +53,7 @@ function set_networking_interfaces_ports($probe = false) global $config; $fp = fopen('php://stdin', 'r'); - $yes_no_prompt = '[y|n]? '; + $yes_no_prompt = '[y/N]: '; $interactive = true; $key = null; @@ -95,7 +95,7 @@ EOD; You now have the opportunity to configure VLANs. If you don't require VLANs for initial connectivity, say no here and use the GUI to configure VLANs later. -Do you want to set up VLANs now ${yes_no_prompt} +Do you want to set up VLANs now? ${no_yes_prompt} EOD; if ($interactive) { $key = chop(fgets($fp)); @@ -277,7 +277,7 @@ EOD; echo <<