11 lines
424 B
Bash
11 lines
424 B
Bash
|
# this runs startups for bash shell base system
|
||
|
# don't run statup if user logs in via su
|
||
|
if [ "$SHELL" = "/bin/bash" ] && [ "${BASH_SHELL_STARTUP}" ] && [ "$(ps -o comm= $PPID)" != "su" ]; then
|
||
|
# uncomment for debugging
|
||
|
if [[ -f $BASH_SHELL_STARTUP ]] && [[ $EUID -ne 0 ]]; then
|
||
|
llog "sourcing startup script $BASH_SHELL_STARTUP"
|
||
|
# (${BASH_SHELL_STARTUP}) &
|
||
|
source ${BASH_SHELL_STARTUP}
|
||
|
fi
|
||
|
fi
|