X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Fupdate_oldconfig;h=6d4d87045063c802e693fbb7c3df7f3ee0b136e7;hp=2f4100353a42862c03d5c2ab333fd1a1768544b9;hb=a296e9433919a6d709ae7826ecc5310d9e2d1365;hpb=edd1278b34e1753a1e409beaad68a7d0e368787f diff --git a/build/update_oldconfig b/build/update_oldconfig index 2f41003..6d4d870 100755 --- a/build/update_oldconfig +++ b/build/update_oldconfig @@ -1,4 +1,7 @@ -#!/usr/bin/expect -f -d +#!/usr/bin/expect -f + +#enables some diagnostic output +exp_internal 1 # log all interaction to a file to diagnose failures log_file -a [lindex $argv 0] @@ -58,4 +61,14 @@ expect { send "m\r" exp_continue } + -re "\n *(\[^\n]* \\\[Y\/n\/m\/\\?] \\(NEW\\)) " { + puts "$expect_out(1,string) m" + send "m\r" + exp_continue + } + -re "\n *(\[^\n]* \\\[Y\/\\?] \\(NEW\\)) " { + puts "$expect_out(1,string) y" + send "y\r" + exp_continue + } }