Added system-release file.
# Begin /etc/bashrc
-# Written for Beyond Linux From Scratch
-# by James Robertson <jameswrobertson@earthlink.net>
-# updated by Bruce Dubbs <bdubbs@linuxfromscratch.org>
-
-# Make sure that the terminal is set up properly for each shell
-
-if [ -f /etc/profile.d/tinker-term.sh ]; then
- source /etc/profile.d/tinker-term.sh
-fi
# System wide aliases and functions.
# /etc/profile.
alias ls='ls --color=auto'
-alias ll='ls -la'
-alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
-
-# Make the shell a little bit more interactive
-# to prevent the deletion of some files
-alias mv='mv -i'
-alias rm='rm -i'
-alias cp='cp -i'
-
-# Midnight Commander isn't compatible to UTF8.
-# So we use it in ACSII-Mode.
-
-alias mc='mc -a'
# Provides prompt for non-login shells, specifically shells started
# in the X environment. [Review the LFS archive thread titled
# 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.
# Setup some environment variables.
export HISTSIZE=1000
export HISTIGNORE="&:[bf]g:exit"
+
export PS1="[\u@\h \w]\\$ "
#export PS1='\u@\h:\w\$ '
# Set up i18n variables
-export LANG=en_US.utf8
+
+if [ -f "/etc/sysconfig/console" ]; then
+ . /etc/sysconfig/console
+else
+ LANG=en_US.UTF-8
+fi
+
+unset KEYMAP FONT UNICODE KEYMAP_CORRECTIONS LEGACY_CHARSET
+export LANG
--- /dev/null
+# Begin ~/.bash_logout
+
+# Personal items to perform on logout.
+
+echo "Bye bye."
+
+# End ~/.bash_logout
--- /dev/null
+# Begin ~/.bash_profile
+
+# Personal environment variables and startup programs.
+
+# Personal aliases and functions should go in ~/.bashrc. System wide
+# environment variables and startup programs are in /etc/profile.
+# System wide aliases and functions are in /etc/bashrc.
+
+append () {
+ # First remove the directory
+ local IFS=':'
+ local NEWPATH
+ for DIR in $PATH; do
+ if [ "$DIR" != "$1" ]; then
+ NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
+ fi
+ done
+
+ # Then append the directory
+ export PATH=$NEWPATH:$1
+}
+
+if [ -f "$HOME/.bashrc" ] ; then
+ source $HOME/.bashrc
+fi
+
+if [ -d "$HOME/bin" ] ; then
+ append $HOME/bin
+fi
+
+unset append
+
+# End ~/.bash_profile
--- /dev/null
+# Begin ~/.bashrc
+
+# Personal aliases and functions.
+
+# Personal environment variables and startup programs should go in
+# ~/.bash_profile. System wide environment variables and startup
+# programs are in /etc/profile. System wide aliases and functions are
+# in /etc/bashrc.
+
+if [ -f "/etc/bashrc" ] ; then
+ source /etc/bashrc
+fi
+
+# End ~/.bashrc
# Config files
for i in $(DIR_SRC)/config/etc/*; do \
- [ -f $$i ] && cp $$i /etc; \
+ cp -vf $$i /etc; \
+ done
+ for i in $(DIR_CONFIG)/root/*; do \
+ cp -vf $$i /root; \
done
-mkdir -pv /etc/modprobe.d
cp -av $(DIR_CONF)/modprobe.d/* /etc/modprobe.d/
echo "\n running on \s \r \m" >> /etc/issue
echo "$(NAME) Release $(VERSION) ($(SLOGAN))" > /etc/$(SNAME)-release
+ ln -svf $(SNAME)-release /etc/system-release
touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
#chgrp -v utmp /var/run/utmp /var/log/lastlog