From 1ac859dfea03701f02dcd25ba3b91fb17cf520cf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 21 Mar 2012 00:40:21 -0700 Subject: [PATCH] Bug #361759: QA check for /etc/udev/rules.d --- bin/misc-functions.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index d2de0a709..b08389714 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -258,6 +258,18 @@ install_qa_check() { eqawarn "$f" fi + if [[ -d ${ED}/etc/udev/rules.d ]] ; then + f= + for x in $(ls "${ED}/etc/udev/rules.d") ; do + f+=" etc/udev/rules.d/$x\n" + done + if [[ -n $f ]] ; then + eqawarn "QA Notice: udev rules should be installed in /lib/udev/rules.d:" + eqawarn + eqawarn "$f" + fi + fi + # Now we look for all world writable files. local unsafe_files=$(find "${ED}" -type f -perm -2 | sed -e "s:^${ED}:- :") if [[ -n ${unsafe_files} ]] ; then -- 2.26.2