f73f5d4c42
* find_directory() and hard-coded paths use /boot/system instead of /boot/common. * The build system creates the writable directories in /boot/system instead of /boot/common. * The build system no longer installs any packages in /boot/common.
13 lines
499 B
Bash
13 lines
499 B
Bash
# Check for interactive bash and that we haven't already been sourced.
|
|
[ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION" ] && return
|
|
|
|
# Check for recent enough version of bash.
|
|
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
|
|
if [ $bmajor -gt 3 ] || [ $bmajor -eq 3 -a $bminor -ge 2 ]; then
|
|
if shopt -q progcomp && [ -r /boot/system/etc/bash_completion ]; then
|
|
# Source completion code.
|
|
. /boot/system/etc/bash_completion
|
|
fi
|
|
fi
|
|
unset bash bmajor bminor
|