ayarlar
This commit is contained in:
parent
9bba66e431
commit
f05c821567
|
@ -1125,9 +1125,10 @@ squashfs_olustur(){
|
|||
unmount_islemi
|
||||
lfs_kontrol
|
||||
#son ayar yuklemeleri
|
||||
cp /etc/bashrc $LFS/etc/bashrc
|
||||
cp rootfs/etc/bashrc $LFS/etc/bashrc
|
||||
cp rootfs/etc/profile $LFS/etc/profile
|
||||
cp ./ayarlar/mps.conf $LFS/etc/mps.conf
|
||||
cp ./rootfs/etc/rc.d/init.d/sysklogd $LFS/etc/rc.d/init.d/sysklogd
|
||||
cp -f ./rootfs/etc/rc.d/init.d/* $LFS/etc/rc.d/init.d/
|
||||
iso_etiket="MILIS_LIVE"
|
||||
rm iso_icerik/boot/kernel
|
||||
rm iso_icerik/boot/initramfs
|
||||
|
|
|
@ -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$RED\u [ $NORMAL\w$RED ]# $NORMAL"
|
||||
else
|
||||
PS1="$TITLEBAR$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL"
|
||||
fi
|
||||
# End /etc/bashrc
|
|
@ -0,0 +1,75 @@
|
|||
# Begin /etc/profile
|
||||
# Written for Beyond Linux From Scratch
|
||||
# by James Robertson <jameswrobertson@earthlink.net>
|
||||
# modifications by Dagmar d'Surreal <rivyqntzne@pbzpnfg.arg>
|
||||
|
||||
# System wide environment variables and startup programs.
|
||||
|
||||
# System wide aliases and functions should go in /etc/bashrc. Personal
|
||||
# environment variables and startup programs should go into
|
||||
|
||||
# ~/.bashrc.
|
||||
|
||||
# Functions to help us manage paths. Second argument is the name of the
|
||||
# path variable to be modified (default: PATH)
|
||||
pathremove () {
|
||||
local IFS=':'
|
||||
local NEWPATH
|
||||
local DIR
|
||||
local PATHVARIABLE=${2:-PATH}
|
||||
for DIR in ${!PATHVARIABLE} ; do
|
||||
if [ "$DIR" != "$1" ] ; then
|
||||
NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
|
||||
fi
|
||||
done
|
||||
export $PATHVARIABLE="$NEWPATH"
|
||||
}
|
||||
|
||||
pathprepend () {
|
||||
pathremove $1 $2
|
||||
local PATHVARIABLE=${2:-PATH}
|
||||
export $PATHVARIABLE="$1${!PATHVARIABLE:+:${!PATHVARIABLE}}"
|
||||
}
|
||||
|
||||
pathappend () {
|
||||
pathremove $1 $2
|
||||
local PATHVARIABLE=${2:-PATH}
|
||||
export $PATHVARIABLE="${!PATHVARIABLE:+${!PATHVARIABLE}:}$1"
|
||||
}
|
||||
|
||||
export -f pathremove pathprepend pathappend
|
||||
|
||||
# Set the initial path
|
||||
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
||||
|
||||
if [ $EUID -eq 0 ] ; then
|
||||
unset HISTFILE
|
||||
fi
|
||||
|
||||
# Setup some environment variables.
|
||||
export HISTSIZE=1000
|
||||
export HISTIGNORE="&:[bf]g:exit"
|
||||
|
||||
# Set some defaults for graphical systems
|
||||
export XDG_DATA_DIRS=/usr/share/
|
||||
export XDG_CONFIG_DIRS=/etc/xdg/
|
||||
|
||||
# Setup a red prompt for root and a green one for users.
|
||||
NORMAL="\[\e[0m\]"
|
||||
RED="\[\e[1;31m\]"
|
||||
GREEN="\[\e[1;32m\]"
|
||||
if [[ $EUID == 0 ]] ; then
|
||||
PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL"
|
||||
else
|
||||
PS1="$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL"
|
||||
fi
|
||||
|
||||
for script in /etc/profile.d/*.sh ; do
|
||||
if [ -r $script ] ; then
|
||||
. $script
|
||||
fi
|
||||
done
|
||||
|
||||
unset script RED GREEN NORMAL
|
||||
|
||||
# End /etc/profile
|
Loading…
Reference in New Issue