#!/bin/sh /bin/rpm -K $1 | grep 'gpg OK' >/dev/null 2>/dev/null if [ $? -ne 0 ]; then echo "$1 is not signed." >&2 exit 1 fi exit 0