Don't clobber the "prompt" variable if it has already been set (e. g.

from within loader.conf).

Reviewed by:	dcs
This commit is contained in:
Joerg Wunsch 1999-04-20 12:07:03 +00:00
parent 0e9364c961
commit 346f1ca8fc

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: interp.c,v 1.16 1999/03/02 16:16:57 dcs Exp $
* $Id: interp.c,v 1.17 1999/03/08 10:32:38 dcs Exp $
*/
/*
* Simple commandline interpreter, toplevel and misc.
@ -111,7 +111,8 @@ interact(void)
* Not autobooting, go manual
*/
printf("\nType '?' for a list of commands, 'help' for more detailed help.\n");
setenv("prompt", "${currdev}>", 1);
if (getenv("prompt") == NULL)
setenv("prompt", "${currdev}>", 1);
for (;;) {