This repository has been archived on 2022-02-20. You can view files and clone it, but cannot push or open issues/pull-requests.
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
|
2021-01-30 11:58:19 -08:00
|
|
|
llog "sourcing startup script $BASH_SHELL_STARTUP"
|
|
|
|
# (${BASH_SHELL_STARTUP}) &
|
|
|
|
source ${BASH_SHELL_STARTUP}
|
2020-11-13 10:25:04 -08:00
|
|
|
fi
|
|
|
|
fi
|