File: fake-userv

package info (click to toggle)
secnet 0.6.8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,956 kB
  • sloc: ansic: 15,234; python: 1,057; perl: 966; sh: 596; tcl: 484; java: 231; asm: 114; yacc: 89; php: 64; makefile: 48; awk: 40
file content (16 lines) | stat: -rwxr-xr-x 411 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# This file is part of secnet.
# See LICENCE and this file CREDITS for full list of copyright holders.
# SPDX-License-Identifier: GPL-3.0-or-later
# There is NO WARRANTY.

set -e
echo >&2 "$0: invoked as $0 $*"
shift
shift
exec 3<&0 4>&1 5>&2 >&2 </dev/null
exec xterm -T netns -e unshare -n -- sh -xc '
  ../userv-utils.git/ipif/service \* -- "$@" <&3 >&4 2>&5 &
  sleep 0.1
  env - bash -i
' x "$@"