|
@ -52,17 +52,15 @@ while : |
|
|
continue |
|
|
continue |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
## get basic info from SD |
|
|
# get config info if already available |
|
|
bootstrapInfoExists=$(ls ${infoFile} 2>/dev/null | grep -c '.info') |
|
|
|
|
|
if [ ${bootstrapInfoExists} -eq 1 ]; then |
|
|
|
|
|
source ${infoFile} |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# get final config if already avaulable |
|
|
|
|
|
configExists=$(ls ${configFile} 2>/dev/null | grep -c '.conf') |
|
|
configExists=$(ls ${configFile} 2>/dev/null | grep -c '.conf') |
|
|
if [ ${configExists} -eq 1 ]; then |
|
|
if [ ${configExists} -eq 1 ]; then |
|
|
source ${configFile} |
|
|
source ${configFile} |
|
|
setupStep=100 |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# if setup not marked as done (=100) load boostrap info file |
|
|
|
|
|
if [ "${setupStep}" != "100" ]; then |
|
|
|
|
|
source ${infoFile} |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# if no information available from files - set default |
|
|
# if no information available from files - set default |
|
|