-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccept_eula.sh
More file actions
executable file
·38 lines (33 loc) · 924 Bytes
/
accept_eula.sh
File metadata and controls
executable file
·38 lines (33 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/expect
# SPDX-FileCopyrightText: 2021, Carles Fernandez-Prades <carles.fernandez@cttc.es>
# SPDX-FileCopyrightText: 2024, Jacques Fourie <jfourie@ualberta.ca>
# SPDX-License-Identifier: MIT
set timeout -1
set install_dir [lindex $argv 1]
set installer [lindex $argv 0]
spawn $installer $install_dir --platform "arm"
set timeout 2
expect {
"ERROR: Invalid options:" {spawn $installer -d $install_dir --platform "arm"}
timeout { }
}
set timeout 600
expect "Press Enter to display the license agreements"
send "\r"
set timeout 2
expect {
"* >*" {send "y\r"}
timeout { send "q"; sleep 1; exp_continue}
}
expect {
"* >*" {send "y\r"}
timeout { send "q"; sleep 1; exp_continue}
}
expect {
"* >*" {send "y\r"}
timeout { send "q"; sleep 1; exp_continue}
}
# set timeout -1
# expect "INFO: Checking PetaLinux installer integrity..."
# expect "INFO: Installing PetaLinux..."
#interact