slackware-current/source/installer/sources/initrd/etc/profile
Patrick J Volkerding 4147fdd758 Mon Jul 29 18:32:35 UTC 2024
a/sysklogd-2.6.1-x86_64-1.txz:  Upgraded.
d/python-pip-24.2-x86_64-1.txz:  Upgraded.
d/python-setuptools-72.1.0-x86_64-1.txz:  Upgraded.
n/links-2.30-x86_64-1.txz:  Upgraded.
x/libX11-1.8.10-x86_64-1.txz:  Upgraded.
x/xinput_calibrator-0.8.0-x86_64-1.txz:  Added.
2024-07-29 20:58:51 +02:00

42 lines
1.2 KiB
Bash

# commands common to all logins
PATH="$PATH:/bin:/sbin:/usr/bin:/usr/lib/setup"
PATH="$PATH:/mnt/usr/local/bin:/mnt/usr/bin:/mnt/bin"
PATH="$PATH:/mnt/usr/local/sbin:/mnt/usr/sbin:/mnt/sbin"
PATH="$PATH:/mnt/linux/usr/local/bin:/mnt/linux/usr/bin:/mnt/linux/bin"
PATH="$PATH:/mnt/linux/usr/local/sbin:/mnt/linux/usr/sbin:/mnt/linux/sbin"
# Allow a user to set the default TERM entry by specifying TERM=<name>
# as a kernel command line parameter:
if cat /proc/cmdline | grep "TERM=[a-zA-Z0-9]" 1> /dev/null 2> /dev/null ; then
export TERM=$( sed 's/.*TERM=\([^ ]*\).*/\1/' < /proc/cmdline )
elif cat /proc/cmdline | grep console=ttyS 1> /dev/null 2> /dev/null ; then
export TERM=vt100
else
export TERM=linux
fi
HOME=/root
LESS=-MM
# Set command line prompt:
PS1='\u@\h:\w# '
PS2='> '
# Display manpages correctly:
export MANPAGER="less -r"
# Suppress the "informal messages" in the first line of the lesspipe output.
# If you like these, comment this line out.
export LESSQUIET=true
ignoreeof=10
export HOME PATH DISPLAY LESS TERM PS1 PS2 ignoreeof
umask 022
# Append any additional sh scripts found in /etc/profile.d/:
for profile_script in /etc/profile.d/*.sh ; do
if [ -x $profile_script ]; then
. $profile_script
fi
done
unset profile_script