3 # Helper script that gets run with nsenter to manually setup a secondary shell
4 # session to a given namespace testenv. This basically just sets up the same
5 # environment variables as you normally get with selftest, for convenience.
8 echo "Usage: $0 <exports-file>"
12 # we get passed a exports file with all the environment variables defined
15 # read the exports file so the new shell has appropriate variables setup
16 # (we export rather than sourcing here so they get inherited by the subshell)
17 while read -r line
; do
19 # dump them for the user too
24 echo "Entered $NETBIOSNAME namespace, with above variables defined."
25 echo "Use CTRL+D or exit to leave the namespace."
28 # start a shell session in the new namespace