criu/test/zdtm/static/binfmt_misc.hook
Radostin Stoyanov 221f115189 Fix typos
Most of the typos were found by codespell.

Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-10-30 19:27:58 +03:00

22 lines
378 B
Bash
Executable file

#!/bin/bash
[ "$1" == "--clean" ] || exit 0
name=$(basename -s .hook $0).test
tname=$(mktemp -d binfmt_misc.XXXXXX)
mount -t binfmt_misc none $tname
echo "Cleaning $name: $@"
set +e
if [ -e $tname/${name}_magic ]; then
echo -1 > $tname/${name}_magic
fi
if [ -e $tname/${name}_extension ]; then
echo -1 > $tname/${name}_extension
fi
set -e
umount "$tname"
rmdir "$tname"