diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-03-21 00:40:21 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-03-21 00:40:21 -0700 |
commit | 1ac859dfea03701f02dcd25ba3b91fb17cf520cf (patch) | |
tree | 0f4bae9101e9709f443cf3073e361b2df0ad6595 | |
parent | 500e0567432019835ef56e69d60266f9189c6700 (diff) | |
download | portage-1ac859dfea03701f02dcd25ba3b91fb17cf520cf.tar.gz portage-1ac859dfea03701f02dcd25ba3b91fb17cf520cf.tar.bz2 portage-1ac859dfea03701f02dcd25ba3b91fb17cf520cf.zip |
Bug #361759: QA check for /etc/udev/rules.d
-rwxr-xr-x | bin/misc-functions.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 |