diff options
-rwxr-xr-x | kernel/networking/libvirt/common/autologin.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/networking/libvirt/common/autologin.exp b/kernel/networking/libvirt/common/autologin.exp index 609afc6..fd390f0 100755 --- a/kernel/networking/libvirt/common/autologin.exp +++ b/kernel/networking/libvirt/common/autologin.exp @@ -32,8 +32,8 @@ for {set i 1} {$i < $argc} {incr i 1} { } #capture return code from last command -send "echo \$?\r" -expect -re "(\\d+)" { +send "echo RESULT:\$?\r" +expect -re "RESULT:(\\d+)" { set result $expect_out(1,string) } |