1 2 3 4 5 6 7
#!/bin/sh set -e if [ "$1" = "purge" ]; then dpkg-divert --quiet --remove --rename /test-file fi