X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=scripts%2Fpatch-kernel.sh;h=91753ba2fdf11406ceef41eea7c84a53984f532d;hb=70bf949e54f121c76810ae081ed3f09a0033a563;hp=79401c2a74f21af93ddc91abd037df92bcb9f0de;hpb=f77b88d124ea1c900f9cf5e04046939aad48bbe1;p=openwrt.git diff --git a/scripts/patch-kernel.sh b/scripts/patch-kernel.sh index 79401c2a74..91753ba2fd 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 -E -d ${targetdir} if [ $? != 0 ] ; then echo "Patch failed! Please fix $i!" exit 1