~razzi/ronin

028a132627bc581219177a5ef5e4feaaf00eb118 — Razzi Abuissa 7 months ago b30ce09
Clean shutdown for setup phase
2 files changed, 5 insertions(+), 1 deletions(-)

M Makefile
M setup-ssh.exp
M Makefile => Makefile +2 -1
@@ 7,4 7,5 @@ lint:
	shellcheck ronin.sh

clean:
	$(RM) -r ~/.ronin/
	-pkill -i qemu
	-$(RM) -r ~/.ronin/

M setup-ssh.exp => setup-ssh.exp +3 -0
@@ 52,3 52,6 @@ expect -re {(ssh-ed25519 \S+) root@localhost} {
  puts -nonewline $guest_ssh_key $expect_out(1,string)
  close $guest_ssh_key
}

send "shutdown -h now\n"
expect "reboot: Power down"