1
0

creation of config directory

This commit is contained in:
Daniel Tartavel 2018-06-07 14:37:24 +02:00
parent 7de3bb739c
commit 5899e80499
2 changed files with 4 additions and 2 deletions

View File

@ -55,3 +55,5 @@ HOSTNAME="$TARGET.$ID_USER"
#Path where the raspberry pi firmware is/will be installed
FIRMWARE_PATH="$INSTALL_PATH/"
#Path to config's files

View File

@ -632,13 +632,13 @@ if [ -e "./$CONFIG_PATH" ];then
info "using $CONFIG_PATH as config"
. "./$CONFIG_PATH"
else
$CONFIG_PATH="$SOURCE_PATH/`basename $CONFIG_PATH`"
$CONFIG_PATH="$SOURCE_PATH/config/`basename $CONFIG_PATH`"
if [ -e "$CONFIG_PATH" ];then
. "$CONFIG_PATH"
info "using $CONFIG_PATH as config"
else
warning "$CONFIG_PATH do not exists"
if [ -e "$SOURCE_PATH/config.txt" ];then
if [ -e "$SOURCE_PATH/config/config.txt" ];then
. "$SOURCE_PATH/config.txt"
warning "Using $SOURCE_PATH/config.txt as config file"
else