tn3399_openwrt/package/system
Daniel Golle 46a65f927c
procd: update to git HEAD and add new script helpers
e10de28 jail: cgroups-bpf: fix compile with musl 1.2
 f5d9b14 hotplug-dispatch: fix rare memory leaks in error paths

Add new init script helpers:
 procd_add_start_mount_trigger
 procd_add_reload_mount_trigger
 procd_get_mountpoints

Both trigger helpers expect a list of paths which are checked against
the mount targets configured in /etc/config/fstab and a trigger for all
mountpoints covered by the list of paths is setup.

procd_get_mountpoints is useful to find out if and which mountpoints
are covered by a list of paths.

Example:
  DATADIRS="/mnt/data/foo /mnt/data/bar /etc/foo/baz /var/lib/doe"

  start_service() {
    [ "$_BOOT" = "1" ] &&
      [ "$(procd_get_mountpoints $DATADIRS)" ] && return 0

    procd_open_instance
    # ...
    procd_close_instance
  }

  boot() {
    _BOOT=1 start
  }

  service_triggers() {
    procd_add_start_mount_trigger $DATADIRS
  }

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-08-05 03:46:21 +01:00
..
ca-certificates download: add mirror alias for Debian 2021-02-26 20:41:00 +01:00
fstools fstools: update to git HEAD 2021-08-05 03:46:11 +01:00
fwtool fwtool: update to latest Git head 2019-11-14 22:53:31 +01:00
iucode-tool treewide: Mark packages nonshared if they depend on @TARGET_ 2021-05-24 00:28:22 +02:00
mtd mtd: fix imagetag compilation 2021-03-17 08:42:05 +01:00
openwrt-keyring openwrt-keyring: Only copy sign key for snapshots 2021-05-17 19:02:02 +02:00
opkg treewide: remove PKG_INSTALL from CMake packages 2021-06-19 20:44:59 -10:00
procd procd: update to git HEAD and add new script helpers 2021-08-05 03:46:21 +01:00
refpolicy Revert "refpolicy: add variant that builds modular policy" 2020-11-22 15:20:35 +00:00
rpcd rpcd: update to latest Git HEAD 2021-07-13 20:43:02 +02:00
selinux-policy selinux-policy: update to version v0.8 2021-03-14 12:56:46 +00:00
ubox ubox: update to git HEAD 2021-08-04 00:13:45 +01:00
ubus treewide: unmark selected packages nonshared 2021-07-02 18:12:15 +02:00
ucert ucert: update to latest git HEAD 2020-05-24 17:01:36 +02:00
uci treewide: unmark selected packages nonshared 2021-07-02 18:12:15 +02:00
urandom-seed treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
urngd treewide: remove BUILD_PARALLEL from CMake packages 2021-06-19 20:44:59 -10:00
usign usign: update to latest git HEAD 2020-05-23 13:38:12 +02:00
zram-swap zram-swap: clean up the log messages 2021-06-27 14:49:14 -10:00