2020-11-13 10:25:04 -08:00
|
|
|
# this runs startups for bash shell base system
|
2020-11-29 09:24:51 -08:00
|
|
|
# don't run statup if user logs in via su
|
|
|
|
if [ "$SHELL" = "/bin/bash" ] && [ "${BASH_SHELL_STARTUP}" ] && [ "$(ps -o comm= $PPID)" != "su" ]; then
|
2020-11-13 10:25:04 -08:00
|
|
|
# uncomment for debugging
|
|
|
|
if [[ -f $BASH_SHELL_STARTUP ]] && [[ $EUID -ne 0 ]]; then
|
|
|
|
llog "running startup script $BASH_SHELL_STARTUP async"
|
|
|
|
(${BASH_SHELL_STARTUP}) &
|
|
|
|
fi
|
|
|
|
fi
|