#!/bin/sh # DESCRIPTION # NAME="init1-debuginfo" verbose() { if [ -n "$GLOBAL_VERBOSE" ]; then echo "HOOK: $NAME: $@" fi } verbose "has started" rpm -qa | grep debuginfo | xargs rpm -e verbose "finished"