summaryrefslogtreecommitdiff
path: root/package/system/procd
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2018-01-28 09:43:30 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2018-01-28 09:51:06 +0800
commit60ad837bea4a006a54fd8b659083f7bf648da781 (patch)
treeb5923487377a9e4f0453ad7d241631da1a279913 /package/system/procd
parent53f62bc5e5c36c1a08e162d8b26de7d831fc36e5 (diff)
downloadmtk-20170518-60ad837bea4a006a54fd8b659083f7bf648da781.zip
mtk-20170518-60ad837bea4a006a54fd8b659083f7bf648da781.tar.gz
mtk-20170518-60ad837bea4a006a54fd8b659083f7bf648da781.tar.bz2
procd: fix procd_lock() when prepare_roofs
This fixes the following errors when doing "make package/install" /home/yousong/git-repo/lede-project/lede/build_dir/target-mips_24kc_musl/root-malta/lib/functions/procd.sh: line 47: /home/yousong/git-repo/l ede-project/lede/build_dir/target-mips_24kc_musl/root-malta/var/lock/procd_urandom_seed.lock: No such file or directory flock: 1000: Bad file descriptor Fixes FS#1260 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'package/system/procd')
-rw-r--r--package/system/procd/Makefile2
-rw-r--r--package/system/procd/files/procd.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile
index 7b673e4..b3b38ad 100644
--- a/package/system/procd/Makefile
+++ b/package/system/procd/Makefile
@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=procd
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/procd.git
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh
index b4b6faa..6f16b74 100644
--- a/package/system/procd/files/procd.sh
+++ b/package/system/procd/files/procd.sh
@@ -33,7 +33,7 @@
# Send a signal to a service instance (or all instances)
#
-. $IPKG_INSTROOT/usr/share/libubox/jshn.sh
+. "$IPKG_INSTROOT/usr/share/libubox/jshn.sh"
PROCD_RELOAD_DELAY=1000
_PROCD_SERVICE=
@@ -44,7 +44,7 @@ procd_lock() {
flock -n 1000 &> /dev/null
if [ "$?" != "0" ]; then
- exec 1000>/var/lock/procd_${service_name}.lock
+ exec 1000>"$IPKG_INSTROOT/var/lock/procd_${service_name}.lock"
flock 1000
if [ "$?" != "0" ]; then
logger "warning: procd flock for $service_name failed"