chiark / gitweb /
legal: Add missing notice to many files
[secnet.git] / test-example / fake-userv
1 #!/bin/sh
2 # This file is part of secnet.
3 # See LICENCE and this file CREDITS for full list of copyright holders.
4 # SPDX-License-Identifier: GPL-3.0-or-later
5 # There is NO WARRANTY.
6
7 set -e
8 echo >&2 "$0: invoked as $0 $*"
9 shift
10 shift
11 exec 3<&0 4>&1 5>&2 >&2 </dev/null
12 exec xterm -T netns -e unshare -n -- sh -xc '
13   ../userv-utils.git/ipif/service \* -- "$@" <&3 >&4 2>&5 &
14   sleep 0.1
15   env - bash -i
16 ' x "$@"