bin/27483: make sysinstall ask for the keymap at installation time

Cyrille Lefevre cyrille.lefevre at laposte.net
Thu Apr 15 14:10:18 PDT 2004


The following reply was made to PR bin/27483; it has been noted by GNATS.

From: Cyrille Lefevre <cyrille.lefevre at laposte.net>
To: freebsd gnats <freebsd-gnats-submit at freebsd.org>
Cc:  
Subject: Re: bin/27483: make sysinstall ask for the keymap at installation time
Date: Thu, 15 Apr 2004 23:06:34 +0200

 well, RunningAsInit is effectively more appropriate than getpid() == 1.
 
 Index: main.c
 ===================================================================
 RCS file: /home/ncvs/src/usr.sbin/sysinstall/main.c,v
 retrieving revision 1.71
 diff -u -I$Id.*$ -I$.+BSD.*$ -r1.71 main.c
 --- main.c	20 Aug 2003 06:27:21 -0000	1.71
 +++ main.c	15 Apr 2004 21:03:33 -0000
 @@ -166,6 +166,8 @@
  
      /* Begin user dialog at outer menu */
      dialog_clear();
 +    if (RunningAsInit)
 +        dmenuOpen(&MenuSysconsKeymap, &choice, &scroll, &curr, &max, FALSE);
      while (1) {
  	choice = scroll = curr = max = 0;
  	dmenuOpen(&MenuInitial, &choice, &scroll, &curr, &max, TRUE);
 
 Cyrille Lefevre
 -- 
 mailto:cyrille.lefevre at laposte.net


More information about the freebsd-qa mailing list