-#!/bin/bash
+#!/usr/bin/env bash
cd $(dirname $0)
. wvtest.sh
WVPASS test "$(cat t)" = Target3
WVSTART --iprelay-cmd
-WVPASS novaboot --iprelay-cmd="/bin/echo -e '<iprelayd: connected>\xFF\xFA\x2C\x97\xDF\xFF\xF0 \xFF\xFA\x2C\x97\xFF\xFF\xF0'" --on
+WVPASS novaboot --iprelay-cmd="echo -e '<iprelayd: connected>\xFF\xFA\x2C\x97\xDF\xFF\xF0 \xFF\xFA\x2C\x97\xFF\xFF\xF0'" --on
WVSTART Killing of --remote-cmd when it ignores SIGHUP
WVPASS tee script <<'EOF'
WVSTART "INTERACTION variable"
WVPASS novaboot --remote-cmd=cat <<<INTERACTION=0
+WVSTART "Do not accept directories"
+WVPASS mkdir -p tftproot
+WVFAIL novaboot --server=tftproot <<<"load $PWD"
+
+WVSTART "Accept /dev/null file"
+WVPASS mkdir -p tftproot
+WVPASS novaboot --server=tftproot <<<"load /dev/null"
+
# Hi-lock: (("^.*\\(?:WVSTART\\).*$" (0 (quote hi-black-b) t)))