aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-08-15 17:41:59 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-08-15 18:08:37 +0100
commit5c13177c55d068dec3e58f8f37c1c78502f73d3d (patch)
treeb8c3249b62e215936d8aec50024d1bd3705c261e /package/system/procd/files
parent09fccdb99e118b48b0b565a35a7806998c5762e2 (diff)
downloadupstream-5c13177c55d068dec3e58f8f37c1c78502f73d3d.tar.gz
upstream-5c13177c55d068dec3e58f8f37c1c78502f73d3d.tar.bz2
upstream-5c13177c55d068dec3e58f8f37c1c78502f73d3d.zip
procd: add missing dependency and fix empty mount triggers
procd.sh: Instead of triggering on every mount.add event, there should be no mount trigger at all in case none of the directories passed to procd_add_*_mount_trigger() are located on a mountpoint configured in /etc/config/fstab. uxc: add missing dependency on rpcd. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/system/procd/files')
-rw-r--r--package/system/procd/files/procd.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh
index 14314bec95..3549a5a914 100644
--- a/package/system/procd/files/procd.sh
+++ b/package/system/procd/files/procd.sh
@@ -394,11 +394,15 @@ procd_get_mountpoints() {
}
_procd_add_restart_mount_trigger() {
- _procd_add_action_mount_trigger restart $(procd_get_mountpoints "$@")
+ local mountpoints="$(procd_get_mountpoints "$@")"
+ [ "${mountpoints//[[:space:]]}" ] &&
+ _procd_add_action_mount_trigger restart $mountpoints
}
_procd_add_reload_mount_trigger() {
- _procd_add_action_mount_trigger reload $(procd_get_mountpoints "$@")
+ local mountpoints="$(procd_get_mountpoints "$@")"
+ [ "${mountpoints//[[:space:]]}" ] &&
+ _procd_add_action_mount_trigger reload $mountpoints
}
_procd_add_raw_trigger() {