#!/bin/sh
set -e
# Go back to Debian's default splash if Kunst was the active one.
if [ "$1" = remove ] || [ "$1" = purge ]; then
    if command -v plymouth-set-default-theme >/dev/null && \
       [ "$(plymouth-set-default-theme 2>/dev/null)" = kunst ]; then
        plymouth-set-default-theme --reset || true
    fi
fi

