10 lines
394 B
Bash
Executable File
10 lines
394 B
Bash
Executable File
# 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 "running startup script $BASH_SHELL_STARTUP async"
|
|
(${BASH_SHELL_STARTUP}) &
|
|
fi
|
|
fi
|