2 echo "#################### generic-dbus-policychecker.post ####################"
3 if [ -x /usr/bin/dbuspolicy-checker ] ; then
5 for f in /etc/dbus-1/system.d/*.conf; do
7 echo "$0: Checking D-Bus policy file: $f"
8 result=$(/usr/bin/dbuspolicy-checker "$f")
9 fail=$(echo "$result" | grep FAILED | wc -l)
11 if [ $fail -gt 0 ]; then
12 echo "Found $fail Fails"
13 echo "Remove conf file : mv $f $f.fail"
15 fail_cnt=$(( ${fail_cnt} + 1 ))
18 if [ $fail_cnt -gt 0 ]; then
19 echo "Error: MIC build exits due to failed cases on dbus policy checker.(${fail_cnt} errors)"