chroot
This commit is contained in:
parent
28e8216d90
commit
ea9ccf8a52
|
@ -0,0 +1,43 @@
|
||||||
|
# Begin /etc/bashrc
|
||||||
|
# Written for Beyond Linux From Scratch
|
||||||
|
# by James Robertson <jameswrobertson@earthlink.net>
|
||||||
|
# updated by Bruce Dubbs <bdubbs@linuxfromscratch.org>
|
||||||
|
|
||||||
|
# System wide aliases and functions.
|
||||||
|
|
||||||
|
# System wide environment variables and startup programs should go into
|
||||||
|
# /etc/profile. Personal environment variables and startup programs
|
||||||
|
# should go into ~/.bash_profile. Personal aliases and functions should
|
||||||
|
# go into ~/.bashrc
|
||||||
|
|
||||||
|
# Provides a colored /bin/ls command. Used in conjunction with code in
|
||||||
|
# /etc/profile.
|
||||||
|
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
|
||||||
|
# Provides prompt for non-login shells, specifically shells started
|
||||||
|
# in the X environment. [Review the LFS archive thread titled
|
||||||
|
# PS1 Environment Variable for a great case study behind this script
|
||||||
|
# addendum.]
|
||||||
|
#export LC_ALL="tr_TR.UTF-8"
|
||||||
|
|
||||||
|
NORMAL="\[\e[0m\]"
|
||||||
|
RED="\[\e[1;31m\]"
|
||||||
|
GREEN="\[\e[1;32m\]"
|
||||||
|
WHITE="\[\e[1;37m\]"
|
||||||
|
|
||||||
|
case $TERM in
|
||||||
|
xterm|rxvt*)
|
||||||
|
TITLEBAR='\[\033]0;\u@\h \007\]'
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
TITLEBAR=''
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [[ $EUID == 0 ]] ; then
|
||||||
|
PS1="$TITLEBAR$GREEN\u [ $NORMAL\w$GREEN ]# $NORMAL"
|
||||||
|
else
|
||||||
|
PS1="$TITLEBAR$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL"
|
||||||
|
fi
|
||||||
|
# End /etc/bashrc
|
|
@ -989,6 +989,7 @@ chroot_gir(){
|
||||||
lfs_kontrol
|
lfs_kontrol
|
||||||
unmount_islemi
|
unmount_islemi
|
||||||
mount_islemi
|
mount_islemi
|
||||||
|
cp ayarlar/bashrc_chroot "$LFS"/etc/bashrc
|
||||||
chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' /bin/bash --login
|
chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' /bin/bash --login
|
||||||
#chroot "$LFS" /usr/bin/env -i HOME=/root PS1='\u:\w\$ ' /bin/bash --login +h
|
#chroot "$LFS" /usr/bin/env -i HOME=/root PS1='\u:\w\$ ' /bin/bash --login +h
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue