#!/bin/sh -e

if [ "$1" = "remove" ] ; then
  if [ -x /usr/sbin/update-binfmts ]; then
    /usr/sbin/update-binfmts --package wine --remove wine /usr/bin/wine || true
  fi
fi