From 7918af5e635629a70ddb97a3ecfb94e8c7548d0c Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Fri, 8 Jul 2016 18:25:05 +0000 Subject: aglsetup script: fix interactive execution of the script generated from fragments This fixes the problem with Qualcomm boards where EULA approval is required. See: https://lists.linuxfoundation.org/pipermail/automotive-discussions/2016-July/002279.html Change-Id: Ifad216bf559a246d6883e7c2828dacd7bd225075 Signed-off-by: Stephane Desneux --- scripts/.aglsetup_genconfig.bash | 2 +- templates/base/01_setup_EULAfunc.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/.aglsetup_genconfig.bash b/scripts/.aglsetup_genconfig.bash index 6be95d0fa..c6e5a36a1 100755 --- a/scripts/.aglsetup_genconfig.bash +++ b/scripts/.aglsetup_genconfig.bash @@ -340,7 +340,7 @@ EOF append_fragment $BUILDDIR/conf/setup.sh "" "echo '--- end of setup script'" infon " Executing setup script ... " - execute_setup $BUILDDIR/conf/setup.sh >$BUILDDIR/conf/setup.log 2>&1 \ + execute_setup $BUILDDIR/conf/setup.sh 2>&1 | tee $BUILDDIR/conf/setup.log \ && { info "OK" [[ $VERBOSE == 1 ]] && dump_log $BUILDDIR/conf/setup.log diff --git a/templates/base/01_setup_EULAfunc.sh b/templates/base/01_setup_EULAfunc.sh index 7b1ca870d..28d7d926a 100644 --- a/templates/base/01_setup_EULAfunc.sh +++ b/templates/base/01_setup_EULAfunc.sh @@ -24,8 +24,7 @@ The BSP for $MACHINE depends on packages and firmware which are covered by an End User License Agreement (EULA). To have the right to use these binaries in your images, you need to read and accept the following... -The firmware package can contains several types -of firmware (depending on BSP): +The firmware package can contains several types of firmware (depending on BSP): * bootloaders: the first stage bootloaders are proprietary for this board, they are included in this firmware package. @@ -40,7 +39,7 @@ EOF echo REPLY= while [ -z "$REPLY" ]; do - echo -n "Do you read the EULA ? (y/n) " + echo -n "Do you want to read the EULA ? (y/n) " read REPLY case "$REPLY" in y|Y) -- cgit 1.2.3-korg