www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre16/scripts/cinit.get-confdir
Nico Schottelius 0c13ed6979 add cinit-0.3pre16
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-09-29 21:36:27 +02:00

17 lines
410 B
Bash
Executable file

#!/bin/sh
# Nico Schottelius
# cinit: read configuration into variables
# Date: 2005-05-24 (Last Changed: 2005-08-08)
# try environment first
if [ "$CINIT_CONF_DIR" ]; then
CONFDIR=$CINIT_CONF_DIR
elif [ -d $(dirname $0)/../conf/ ]; then
CONFDIR=$(dirname $0)/../conf/
else
echo 'Did not find cinit configuration!' >&2
echo "Please set the variable CINIT_CONF_DIR" >&2
exit 1
fi
echo $CONFDIR