From f52e83b0982c9c18d96757ab55109d43a9873b3f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 23 Mar 2010 20:12:38 +0000 Subject: install_qa_check: make sure init.d and conf.d files do not have syntax errors in them #310805 svn path=/main/trunk/; revision=15843 --- bin/misc-functions.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 87aaeff5a..8db09a0e2 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -331,6 +331,15 @@ install_qa_check() { unset INSTALLTOD fi + # Sanity check syntax errors in init.d scripts + for d in /etc/conf.d /etc/init.d ; do + [[ -d ${D}/${d} ]] || continue + for i in "${D}"/${d}/* ; do + [[ -L ${i} ]] && continue + bash -n "${i}" || die "The init.d file has syntax errors: ${i}" + done + done + # this should help to ensure that all (most?) shared libraries are executable # and that all libtool scripts / static libraries are not executable for i in "${D}"opt/*/lib{,32,64} \ -- cgit v1.2.3-1-g7c22