shell-base/install/files/etc/profile.d/03-startup.sh
kebler.net bcba8bbfd4 refactor shell install scripts
add bindfs and new dir_copy script
2023-01-18 16:50:31 -08:00

10 lines
424 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 "sourcing startup script $BASH_SHELL_STARTUP"
# (${BASH_SHELL_STARTUP}) &
source ${BASH_SHELL_STARTUP}
fi
fi