wait-for-soft-restart.expect (318B)
1 proc chat {instr outstr} { 2 expect { 3 $instr { send $outstr } 4 timeout { exit 1 } 5 } 6 } 7 spawn socat unix-connect:vm/console - 8 9 send "exit\r" 10 chat "BusyBox" "\r" 11 chat "#" "stty -echo; type -p figlet\r" 12 chat "figlet-armv7l-unknown-linux" "s6-rc -a list |grep w\\inkle\r" 13 chat "winkle" "poweroff\r"