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:
parent
0e9364c961
commit
346f1ca8fc
@ -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 (;;) {
|
||||
|
Loading…
Reference in New Issue
Block a user