diff --git a/build.sh b/build.sh index d1097823d..c15ab3a1b 100755 --- a/build.sh +++ b/build.sh @@ -793,7 +793,13 @@ rm -rf feeds/${OMR_KERNEL}/luci/modules/luci-mod-network [ -d feeds/${OMR_DIST}/luci-mod-status ] && rm -rf feeds/${OMR_KERNEL}/luci/modules/luci-mod-status [ -d feeds/${OMR_DIST}/luci-app-statistics ] && rm -rf feeds/${OMR_KERNEL}/luci/applications/luci-app-statistics #[ -d feeds/${OMR_DIST}/luci-proto-modemmanager ] && rm -rf feeds/${OMR_KERNEL}/luci/protocols/luci-proto-modemmanager -[ -d ${OMR_FEED}/netifd ] && rm -rf ${OMR_TARGET}/${OMR_KERNEL}/source/package/network/config/netifd +if [ -d ${OMR_FEED}/netifd ]; then + if [ "${OMR_KERNEL}" != "5.4" ]; then + rm -rf ${OMR_TARGET}/${OMR_KERNEL}/source/package/network/config/netifd + else + rm -rf ${OMR_FEED}/netifd + fi +fi [ -d ${OMR_FEED}/iperf3 ] && rm -rf feeds/${OMR_KERNEL}/packages/net/iperf3 [ -d ${OMR_FEED}/golang ] && rm -rf feeds/${OMR_KERNEL}/packages/lang/golang [ -d ${OMR_FEED}/openvpn ] && rm -rf feeds/${OMR_KERNEL}/packages/net/openvpn