Created
August 8, 2022 12:55
-
-
Save BCadet/ae21e861e55740ed0c47a33e7215817e to your computer and use it in GitHub Desktop.
petalinux eula acceptation script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect | |
set installer [lindex $argv 0] | |
set install_args [lindex $argv 1] | |
spawn $installer $install_args | |
set timeout -1 | |
expect { | |
"Press Enter to display the license agreements" { send "\r"; exp_continue} | |
"(press RETURN)" {send "\r"; sleep 1; send "q"; exp_continue} | |
"* >*" {send "y\r"; exp_continue} | |
"INFO: PetaLinux SDK has been installed" {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment