#!/bin/sh

set -e

BINFMT_TARGETS= # list of architectures is autogenerated from debian/rules

if [ "$1" = remove ] && [ -x /usr/sbin/update-binfmts ]; then
	for target in $BINFMT_TARGETS ; do
		if [ -f /var/lib/binfmts/qemu-"$target" ]; then
			update-binfmts --package qemu-user-static --remove qemu-$target /usr/bin/qemu-$target-static
		fi
	done
fi

#DEBHELPER#
