mwan3: add IPKG_INSTROOT to scripts
authorAaron Goodman <aaronjg@stanford.edu>
Tue, 10 Nov 2020 13:46:55 +0000 (08:46 -0500)
committerAaron Goodman <aaronjg@stanford.edu>
Tue, 10 Nov 2020 13:46:55 +0000 (08:46 -0500)
IPKG_INSTROOT needed for including mwan3 when building images

Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
net/mwan3/files/etc/init.d/mwan3
net/mwan3/files/lib/mwan3/mwan3.sh

index 23c21ab5d70e3217667c09f599599b792356eef8..743beb15274d3e9a3f934878afbfec6386ca4ccb 100755 (executable)
@@ -1,9 +1,8 @@
 #!/bin/sh /etc/rc.common
 
-. /lib/functions.sh
-. /lib/mwan3/common.sh
-. /lib/functions/network.sh
-. /lib/mwan3/mwan3.sh
+. "${IPKG_INSTROOT}/lib/mwan3/common.sh"
+. "${IPKG_INSTROOT}/lib/functions/network.sh"
+. "${IPKG_INSTROOT}/lib/mwan3/mwan3.sh"
 
 START=19
 USE_PROCD=1
index 5bb8a579d715a7c6a93623c2015015101f787086..5d200071a23d3a70b0201fd8bdb3618647d2cc8d 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-. /usr/share/libubox/jshn.sh
+. "${IPKG_INSTROOT}/usr/share/libubox/jshn.sh"
 
 IPS="ipset"
 IPT4="iptables -t mangle -w"