if system will enter shell prompt as "[...]#" when I pass init=/bin/sh to kernel

ZHOU ZHONGJUN ZHONGJUN.ZHOU at alcatel-sbell.com.cn
Wed Mar 14 23:52:16 PDT 2007


Hi, all
 
if system will enter shell prompt as "[...]#" when I pass init=/bin/sh
to kernel like in u-boot setenv bootargs root=/dev/mtdblock3
rootfstype=cramfs console=ttyS0,115200 init=/bin/sh ???
 
Any help is appreciated!!
 
John Zhou

  _____  

From: Jan Evert van Grootheest
[mailto:Jan-Evert.van.Grootheest at Vialis.nl] 
Sent: Wednesday, March 14, 2007 10:25 PM
To: ZHOU ZHONGJUN; busybox at busybox.net
Subject: RE: Could you tell me where to set ash's prompt as
"[root at localhost]#"?


Hi John,

	-----Oorspronkelijk bericht-----
	Van: busybox-bounces at busybox.net
[mailto:busybox-bounces at busybox.net] Namens ZHOU ZHONGJUN
	Verzonden: woensdag 14 maart 2007 15:05
	Aan: ZHOU ZHONGJUN; busybox at busybox.net
	Onderwerp: Could you tell me where to set ash's prompt as
"[root at localhost]#"?
	
	

	Hi, all,
	
	Could you tell me where to set shell prompt as
"[root at localhost]#"?  when I let ash/sh of busybox is bringing-up, there
is no any prompt ,  The uart is still alive.  When I press
PS1="[\h at u]#",then press enter key, it get "[\h@" prompt. The following
is my booting message printed in UART.
	
	 

I think you intended PS1="[\h@\u]#" (you had u instead of \u).

Also, perhaps it is necessary to turn on CONFIG_FEATURE_SH_FANCY_PROMPT?

-- Jan Evert

 

The information contained in this communication is confidential and may
be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorised to
receive it. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking any action
in reliance on the contents of this information is strictly prohibited
and may be unlawful. Vialis is neither liable for the proper and
complete transmission of the information contained in this communication
nor for any delay in its receipt.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/busybox/attachments/20070315/486a70b1/attachment.html 


More information about the busybox mailing list