files=$(ls ${EROOT:-/}usr/src/*.patch 2> /dev/null | wc -l) if [ **"$files" != "0"** ]; then cd ${EROOT:-/}usr/src/linux/ for p in `ls ../*.patch`; do patch --batch -p1 < $p || die done fi