X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=scripts%2Fpatch-kernel.sh;h=c2b7e7204952f93946a6075d546cbeae32c2627f;hb=HEAD;hp=79401c2a74f21af93ddc91abd037df92bcb9f0de;hpb=3d904bb14a330fb72f60d4b78a40435389398655;p=openwrt-github%2F.git diff --git a/scripts/patch-kernel.sh b/scripts/patch-kernel.sh index 79401c2a74..c2b7e72049 100755 --- a/scripts/patch-kernel.sh +++ b/scripts/patch-kernel.sh @@ -34,9 +34,10 @@ for i in ${patchdir}/${patchpattern} ; do *) type="plaintext"; uncomp="cat"; ;; esac + [ -d "${i}" ] && echo "Ignoring subdirectory ${i}" && continue echo "" echo "Applying ${i} using ${type}: " - ${uncomp} ${i} | patch -p1 -E -d ${targetdir} + ${uncomp} ${i} | ${PATCH:-patch} -f -p1 -d ${targetdir} if [ $? != 0 ] ; then echo "Patch failed! Please fix $i!" exit 1