You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
344 B
Plaintext

#!/bin/false
mach=$(basename $(dirname "$0"))
netns=netns
nethorror_root="`pwd`" # and hope?
ensure_started() {
test -e state/$mach/$netns || machines/$mach/start.sh
}
attach() {
machines/$mach/attach.sh "$@"
}
setup_statedir() {
dir="state/$mach"
mkdir "$dir"
for ns in $namespaces; do
nsfile="${ns#*=}"
touch "$nsfile"
done
}