#!/bin/sh
pushd "$REPOCOP_STATEDIR/init-script" >/dev/null
for i in `grep -P -rl -- '-x /etc/rc.d/init.d/functions' *` ; do
    key=`dirname $i`
    file=`basename $i`
    repocop-test-warn -k $key "Invalid due to mode 644 test -x /etc/rc.d/init.d/functions in /etc/rc.d/init.d/$file. Use test -r or -e."
done
popd >/dev/null
