saving uncommitted changes in /etc prior to dnf run
This commit is contained in:
5
profile.d/iproute2.sh
Normal file
5
profile.d/iproute2.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
# tc initialization script (sh)
|
||||
|
||||
if [ -z "$TC_LIB_DIR" ]; then
|
||||
export TC_LIB_DIR=/usr/lib64/tc
|
||||
fi
|
||||
@@ -1,7 +1,19 @@
|
||||
# Initialization script for bash and sh
|
||||
# shellcheck shell=sh
|
||||
# Initialization script for bash, sh, mksh and ksh
|
||||
|
||||
if [ "$0" = "ksh" ] || [ "$0" = "-ksh" ] ; then
|
||||
alias which='(alias; typeset -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot'
|
||||
else
|
||||
alias which='(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot'
|
||||
which_declare="declare -f"
|
||||
which_opt="-f"
|
||||
which_shell="$(cat /proc/$$/comm)"
|
||||
|
||||
if [ "$which_shell" = "ksh" ] || [ "$which_shell" = "mksh" ] || [ "$which_shell" = "zsh" ] ; then
|
||||
which_declare="typeset -f"
|
||||
which_opt=""
|
||||
fi
|
||||
|
||||
which ()
|
||||
{
|
||||
(alias; eval ${which_declare}) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
|
||||
}
|
||||
|
||||
export which_declare
|
||||
export ${which_opt} which
|
||||
|
||||
Reference in New Issue
Block a user