summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorabial <abial@FreeBSD.org>1999-01-07 09:49:28 +0000
committerabial <abial@FreeBSD.org>1999-01-07 09:49:28 +0000
commit2994145c2444b698b4d348f20153251a54656b39 (patch)
treed0b1efc503b0e8134844533b58849f1f7da0ba34 /sys/i386
parent438d7c9f8e2b32116e73f749f2fdee100a545f78 (diff)
downloadFreeBSD-src-2994145c2444b698b4d348f20153251a54656b39.zip
FreeBSD-src-2994145c2444b698b4d348f20153251a54656b39.tar.gz
When compiled with INTRO_USERCONFIG, skip the intro screen anyway if we
already loaded and interpreted userconfig_script. Otherwise, when using such kernel system would always block waiting for user input in UserConfig, while the intention was to avoid this by having userconfig_script. Reviewed by: msmith
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/userconfig.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/sys/i386/i386/userconfig.c b/sys/i386/i386/userconfig.c
index bc35323..1dba634 100644
--- a/sys/i386/i386/userconfig.c
+++ b/sys/i386/i386/userconfig.c
@@ -46,7 +46,7 @@
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
- ** $Id: userconfig.c,v 1.118 1998/12/14 06:13:41 dillon Exp $
+ ** $Id: userconfig.c,v 1.119 1999/01/06 09:09:22 abial Exp $
**/
/**
@@ -231,15 +231,21 @@ getchar(void)
} else if (assize == 0) {
- /* Finished parsing script/no script */
- userconfig_boot_parsing = 0;
#ifdef INTRO_USERCONFIG
if (intro == 0)
{
- intro = 1;
- c = 'i';
- asp = "ntro\n";
- assize = strlen(asp);
+ /*
+ * We don't want intro if we just executed a
+ * script (userconfig_boot_parsing==1), otherwise
+ * we would always block here waiting for user input.
+ */
+ if (userconfig_boot_parsing == 0)
+ {
+ intro = 1;
+ c = 'i';
+ asp = "ntro\n";
+ assize = strlen(asp);
+ }
#else
if (!(boothowto & RB_CONFIG))
{
@@ -248,6 +254,7 @@ getchar(void)
asp = "uit\n";
assize = strlen(asp);
#endif
+ userconfig_boot_parsing = 0;
} else {
/* Only display signon banner if we are about to go interactive */
if (!intro)
@@ -2500,7 +2507,7 @@ visuserconfig(void)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: userconfig.c,v 1.118 1998/12/14 06:13:41 dillon Exp $
+ * $Id: userconfig.c,v 1.119 1999/01/06 09:09:22 abial Exp $
*/
#include "scbus.h"
OpenPOWER on IntegriCloud