Skip to content
Snippets Groups Projects
vesta-setup.sh 543 B
Newer Older
  • Learn to ignore specific revisions
  • David Mondou's avatar
    David Mondou committed
    #!/bin/sh
     
    LAYERS_DIR=./sources/base/conf/
    LAYER_OPENREX_STRING="BBLAYERS += \"\${BSPDIR}/sources/meta-vesta\""
     
    if [ -w ${LAYERS_DIR}/bblayers.conf ]
    then
        grep "${LAYER_VESTA_STRING}" "${LAYERS_DIR}/bblayers.conf" > /dev/null
        TMPRETVAL=$(echo $?)
        TMPPRINT=""
     
        if [ ${TMPRETVAL} -eq 0 ]
        then
            TMPPRINT="already present"
        fi
     
        if [ ${TMPRETVAL} -eq 1 ]
        then
            echo "${LAYER_VESTA_STRING}" >> ${LAYERS_DIR}/bblayers.conf
            TMPPRINT="added"
        fi
     
        echo "Layer meta-vesta ${TMPPRINT}"
    fi