Merge remote-tracking branch 'thingos/feature-boot-conf' into thingos-next

This commit is contained in:
Calin Crisan 2019-01-13 22:52:13 +02:00
commit eb872a9234
2 changed files with 12 additions and 12 deletions

View File

@ -1,21 +1,21 @@
SYS_CONF="/etc/os.conf"
BOOT_CONF="/boot/os.conf"
DATA_CONF="/data/etc/os.conf"
_SYS_CONF="/etc/os.conf"
_BOOT_CONF="/boot/os.conf"
_DATA_CONF="/data/etc/os.conf"
# source in all conf files in order of precedence
if [[ -f ${SYS_CONF} ]]; then
source ${SYS_CONF}
if [[ -f ${_SYS_CONF} ]]; then
source ${_SYS_CONF}
fi
if [[ -f ${DATA_CONF} ]]; then
source ${DATA_CONF}
if [[ -f ${_DATA_CONF} ]]; then
source ${_DATA_CONF}
fi
if [[ -f ${BOOT_CONF} ]]; then
source ${BOOT_CONF}
if [[ -f ${_BOOT_CONF} ]]; then
source ${_BOOT_CONF}
fi
unset SYS_CONF BOOT_CONF DATA_CONF
unset _SYS_CONF _BOOT_CONF _DATA_CONF

View File

@ -26,14 +26,14 @@ test -f $basedir/.build-env && source $basedir/.build-env
if [ -n "$THINGOS_SHORT_NAME" ]; then
osname=$THINGOS_SHORT_NAME
else
osname=$(source $basedir/board/common/overlay/etc/version && echo $os_short_name)
osname=$(source $basedir/board/common/overlay/etc/version && echo $OS_SHORT_NAME)
fi
# OS version
if [ -n "$THINGOS_VERSION" ]; then
osversion=$THINGOS_VERSION
else
osversion=$(source $basedir/board/common/overlay/etc/version && echo $os_version)
osversion=$(source $basedir/board/common/overlay/etc/version && echo $OS_VERSION)
fi
# when the special "boards" keyword is used for board, simply list all known boards