linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Not show login correct
@ 2006-11-03 14:27 tran vanle
  2006-11-03 16:45 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: tran vanle @ 2006-11-03 14:27 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 2199 bytes --]

Hi all
I have just build kernel and ramdisk for TQM8xxL success. But when I login I receive 
[root@h W] , my hostname is van and current directory is /root/bin ,May I receive [root@van bin]
Here is my /etc/inittab and /etc/profile

#/etc/inittab
/////////////////////////////////////////////////////////////

 This is run first except when booting in single-user mode.
::sysinit:/etc/rc.sh
#::sysinit:/etc/rc.sysinit
# /bin/sh invocations on selected ttys
#
# Start an "askfirst" shell on /dev/ttyS1
::respawn:/sbin/getty -L 115200 ttyS0 ansi
# ansi
#
# Start internet super daemon; do NOT background!
#::respawn:/usr/sbin/xinetd -stayalive -reuse -pidfile /tmp/xinetd.pid

# Start user application
#::respawn:/bin/application
# Must be last 'respawn' entry to avoid ^C problem
# Start a shell on the console
#::respawn:-/bin/sh

# /etc/profile
//////////////////////////////////////////////////////////////
#echo Exec "/etc/profile" Dir `pwd`

# System wide environment and startup programs
# Functions and aliases go in /etc/bashrc

#alias rm='rm -i'
#alias w='w -u'
HOSTNAME=`/bin/hostname`
PS1="[$USER@\h \W]\\$ "

#ulimit -c 1000000
if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
        umask 002
else
        umask 022
fi

USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HISTSIZE=1000
HISTFILESIZE=1000

if [ -e /etc/TIMEZONE ]; then
        TZ=`cat /etc/TIMEZONE`; export TZ
else
        unset TZ
fi

INPUTRC=/etc/inputrc
PATH=$PATH:/usr/local/bin

export PATH HOSTNAME HISTSIZE HISTFILESIZE USER LOGNAME MAIL INPUTRC PS1

/////////////////////////////////////////////////////////////////////////

//etc/rc.sh
//////////////////////////////////////////////////////////
#!/bin/sh

/sbin/ifconfig lo 127.0.0.1

>/etc/mtab

# mount /proc so "reboot" works
/bin/mount -t proc proc /proc

## try mount PC Card partition
##
## mount read-only by default to prevent corruption
##
#echo /dev/hda1 /mnt >>/etc/fstab
#mkdir -p /mnt
#mount -o ro /dev/hda1 /mnt
#
## run PC Card init script if it exists
#if [ -f /mnt/run.sh ] ; then
#/mnt/run.sh
#fi
/usr/sbin/xinetd -stayalive -reuse -pidfile /tmp/xinetd.pid


 Send instant messages to your online friends http://au.messenger.yahoo.com 

[-- Attachment #2: Type: text/html, Size: 2631 bytes --]

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

* Re: Not show login correct
  2006-11-03 14:27 Not show login correct tran vanle
@ 2006-11-03 16:45 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2006-11-03 16:45 UTC (permalink / raw)
  To: tran vanle; +Cc: linuxppc-embedded

In message <20061103142757.35508.qmail@web33012.mail.mud.yahoo.com> you wrote:
>
> I have just build kernel and ramdisk for TQM8xxL success. But when I login I receive 
> [root@h W] , my hostname is van and current directory is /root/bin ,May I receive [root@van bin]
..
> PS1="[$USER@\h \W]\\$ "

Check if your shell really supports such escape  sequences.  I  guess
you  might  be  running  something different than bash which does not
understand this.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
If you fail to plan, plan to fail.

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

end of thread, other threads:[~2006-11-03 16:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03 14:27 Not show login correct tran vanle
2006-11-03 16:45 ` Wolfgang Denk

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).