mirror of
https://github.com/ovh/the-bastion.git
synced 2025-01-01 13:01:53 +08:00
10 lines
265 B
Bash
10 lines
265 B
Bash
CONFIGFILE=/etc/bastion/luks-config.sh
|
|
if [ -r $CONFIGFILE ] ; then
|
|
. $CONFIGFILE
|
|
if [ -n "$MOUNTPOINT" ] ; then
|
|
export PROMPT_COMMAND="test -e $MOUNTPOINT/allowkeeper && LUKSINFO= || LUKSINFO='<<LOCKED>>'"
|
|
PS1='$LUKSINFO'"$PS1"
|
|
fi
|
|
fi
|
|
|
|
|