#!/bin/sh
cd /usr/tests/lib/librumphijack
ed t_tcpip <<\EOF
/sbin.sshd/
s/sshd/sshd -d -o LogLevel=DEBUG3 /
s/$/ 2>\/tmp\/sshd.log \&/
a
echo $! >sshd.pid
sleep 2
.
/save:ssh.out/
s/out/out -e ignore/
w
q
EOF
while atf-run t_tcpip; do true; done
cat /tmp/sshd.log
