aglsetup script: fix interactive execution of the script generated from fragments 77/6077/1
authorStephane Desneux <stephane.desneux@iot.bzh>
Fri, 8 Jul 2016 18:25:05 +0000 (18:25 +0000)
committerStephane Desneux <stephane.desneux@iot.bzh>
Fri, 8 Jul 2016 18:28:17 +0000 (18:28 +0000)
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 <stephane.desneux@iot.bzh>
scripts/.aglsetup_genconfig.bash
templates/base/01_setup_EULAfunc.sh

index 6be95d0..c6e5a36 100755 (executable)
@@ -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
index 7b1ca87..28d7d92 100644 (file)
@@ -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)