diff --git a/dooris.conf.sample b/dooris.conf.sample index 256d7a5..82ed7b1 100644 --- a/dooris.conf.sample +++ b/dooris.conf.sample @@ -1 +1,2 @@ password=sesamaenderdich +tresor=1111 diff --git a/shared b/shared index 4faa2f3..2c697cb 100755 --- a/shared +++ b/shared @@ -12,3 +12,8 @@ password="$(grep password ${basedir}/${config} 2>/dev/null|cut -d= -f2|tr -d ' \ if [ -z "${password}" ]; then echo "WARNING: password in ${config} is missing!" >&2 fi + +tresor="$(grep tresor ${basedir}/${config} 2>/dev/null|cut -d= -f2|tr -d ' \t')" +if [ -z "${password}" ]; then + echo "WARNING: tresor in ${config} is missing!" >&2 +fi diff --git a/tresor b/tresor new file mode 100755 index 0000000..08efa22 --- /dev/null +++ b/tresor @@ -0,0 +1,7 @@ +#!/bin/sh +. $(dirname $(readlink "$0"))/shared + +echo "Welcome to the Vault!" + +echo "---------------------" +echo "Your Key is: ${tresor}"