if [ "$1" ]; then case $(dpkg-query -W -f='${db:Status-Abbrev}' linux-image-extra-"$1" 2>/dev/null) in 'rH '|'pH ') exit 0 esac fi