Skip to content

Instantly share code, notes, and snippets.

@BCadet
Created August 8, 2022 12:55
Show Gist options
  • Save BCadet/ae21e861e55740ed0c47a33e7215817e to your computer and use it in GitHub Desktop.
Save BCadet/ae21e861e55740ed0c47a33e7215817e to your computer and use it in GitHub Desktop.
petalinux eula acceptation script
#!/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