#!/bin/sh echo "#################### common-hal-directory-check.post ####################" if [ -d /hal ]; then VALUE=`/usr/bin/ls -R /hal | /usr/bin/grep -v "hal\:"` if [ "$VALUE" ]; then echo "WARNING!! There are some files to install to wrong path (/hal)" echo "WARNING!! It has to be nothing under hal directory." FILES=`/usr/bin/ls -R /hal` for file in $FILES; do if [[ $file =~ ":" ]]; then echo $file DIR=`echo $file | /usr/bin/awk -F ":" '{print $1}'` fi if [ -f $DIR/$file ]; then echo $file fi done fi fi