linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Shell prompt - Command not visible
@ 2003-04-28 18:57 Aman
  2003-04-29 11:51 ` Shell prompt - Problem Solved Aman
  0 siblings, 1 reply; 2+ messages in thread
From: Aman @ 2003-04-28 18:57 UTC (permalink / raw)
  To: linuxppc embedded


Hi All

To enable/ disable the shell prompt in linuxppc for IBM 440GP, I wrote two
script files. They are as follows

/**********************************************************************/
/* enable_cli.sh: This script is to enable the shell prompt */

grep -v 'sh:123:respawn:/bin/sh < /dev/console > /dev/console 2>
/dev/console' /etc/inittab > inittab.tmp
echo 'sh:123:respawn:/bin/sh < /dev/console > /dev/console 2> /dev/console'
>> inittab.tmp
mv inittab.tmp /etc/inittab
init q
/**********************************************************************/
/*disable_cli.sh: This script is to disable the shell prompt */

grep -v 'sh:123:respawn:/bin/sh < /dev/console > /dev/console 2>
/dev/console' /etc/inittab > inittab.tmp
mv inittab.tmp /etc/inittab
init q
/**********************************************************************/

To enable shell prompt ,  I give the command "sh enable_cli.sh, to disable
the shell prompt "sh disable_cli.sh"

First time things work fine ie enable/disable shell prompt.When enabled, in
the shell prompt I can execute the command from the shell prompt. If I
disable the shell prompt and enable for the second time, I get the prompt
and I can execute command in the prompt, however the commands I type on the
prompt is not visible.
I type the enter key continuously I get the shell prompt like this
sh-2.05a#  sh-2.05a#   sh-2.05a#  sh-2.05a#  sh-2.05a#  sh-2.05a#  sh-2.05a#
sh-2.05a# sh-2.05a# sh-2.05a#  sh-2.05a#   sh-2.05a#  sh-2.05a#  sh-2.05a#
sh-2.05a#  sh-2.05a#  sh-2.05a# sh-2.05a# sh-2.05a#  sh-2.05a#   sh-2.05a#
sh-2.05a#  sh-2.05a#  sh-2.05a#  sh-2.05a#  sh-2.05a# sh-2.05a#

Can anybody help me in solving this issue

Regards
Aman


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-29 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-28 18:57 Shell prompt - Command not visible Aman
2003-04-29 11:51 ` Shell prompt - Problem Solved Aman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).