aboutsummaryrefslogtreecommitdiff
path: root/net/nft-qos/files
diff options
context:
space:
mode:
authorImran Khan <gururug@gmail.com>2021-12-13 01:17:12 +1100
committerRosen Penev <rosenp@gmail.com>2021-12-17 14:07:47 -0800
commit6d095c479ae89cf6518165561392ffe3a49de3f9 (patch)
tree8e22b9b07dc249870df68e46fb085d7558d4d1db /net/nft-qos/files
parentcb9229870ebbb04e3c2ce07e2a28540752d735db (diff)
nft-qos: fix include on image build service enable
Fixes: f88485f572ec1ff9082106ccf0ccb20fc7af5801 ("nft-qos: silence buildsystem errors") Prefixing IPKG_INSTROOT to sourced includes is ineffective for this package. Source includes only when empty to avoid image make errors. Signed-off-by: Imran Khan <gururug@gmail.com>
Diffstat (limited to 'net/nft-qos/files')
-rwxr-xr-xnet/nft-qos/files/nft-qos.init14
1 files changed, 8 insertions, 6 deletions
diff --git a/net/nft-qos/files/nft-qos.init b/net/nft-qos/files/nft-qos.init
index 6c5842a49..4a85e20c0 100755
--- a/net/nft-qos/files/nft-qos.init
+++ b/net/nft-qos/files/nft-qos.init
@@ -3,12 +3,14 @@
# Copyright (C) 2018 rosysong@rosinson.com
#
-. "${IPKG_INSTROOT}/lib/nft-qos/core.sh"
-. "${IPKG_INSTROOT}/lib/nft-qos/monitor.sh"
-. "${IPKG_INSTROOT}/lib/nft-qos/dynamic.sh"
-. "${IPKG_INSTROOT}/lib/nft-qos/static.sh"
-. "${IPKG_INSTROOT}/lib/nft-qos/mac.sh"
-. "${IPKG_INSTROOT}/lib/nft-qos/priority.sh"
+if [ -z "${IPKG_INSTROOT}" ]; then
+ . /lib/nft-qos/core.sh
+ . /lib/nft-qos/monitor.sh
+ . /lib/nft-qos/dynamic.sh
+ . /lib/nft-qos/static.sh
+ . /lib/nft-qos/mac.sh
+ . /lib/nft-qos/priority.sh
+fi
START=99
USE_PROCD=1