mirror of
https://github.com/ovh/the-bastion.git
synced 2025-01-04 06:27:11 +08:00
11 lines
265 B
Bash
11 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
|
||
|
|
||
|
|