Not show login correct
tran vanle
vantranbk at yahoo.com.au
Sat Nov 4 01:27:57 EST 2006
Hi all
I have just build kernel and ramdisk for TQM8xxL success. But when I login I receive
[root at h W] , my hostname is van and current directory is /root/bin ,May I receive [root at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20061104/a0597410/attachment.htm
More information about the Linuxppc-embedded
mailing list