From 98cad48e0e57b093bafba5b338b395a1e49ed783 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Fri, 5 Apr 2024 08:46:10 +0200 Subject: [PATCH] Fix luci patch --- build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 01691e59..58f0fd5a 100755 --- a/build.sh +++ b/build.sh @@ -839,8 +839,12 @@ rm -rf feeds/${OMR_KERNEL}/luci/modules/luci-mod-network if [ -d feeds/${OMR_KERNEL}/${OMR_DIST}/luci-mod-status ]; then rm -rf feeds/${OMR_KERNEL}/luci/modules/luci-mod-status -elif ! patch -Rf -N -p1 -s --dry-run < ../../patches/luci-syslog.patch; then - patch -N -p1 -s < ../../patches/luci-syslog.patch +else + cd feeds/${OMR_KERNEL} + if ! patch -Rf -N -p1 -s --dry-run < ../../patches/luci-syslog.patch; then + patch -N -p1 -s < ../../patches/luci-syslog.patch + fi + cd - fi [ -d feeds/${OMR_KERNEL}/${OMR_DIST}/luci-app-statistics ] && rm -rf feeds/${OMR_KERNEL}/luci/applications/luci-app-statistics