diff options
author | Yurii Kolesnykov | 2023-04-07 04:50:16 +0300 |
---|---|---|
committer | Yurii Kolesnykov | 2023-06-04 08:54:17 +0300 |
commit | 76c22908e0167578f6e6e74b27d7c675fedff644 (patch) | |
tree | be8abc59e5a71e01eb0937947fae6b94c4655741 /systemd-hook | |
parent | 6e681d813f11f51c4a0c2ceb7ef577d1b7f524c5 (diff) | |
download | aur-76c22908e0167578f6e6e74b27d7c675fedff644.tar.gz |
sync with testing/systemd, versioned depends
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
Diffstat (limited to 'systemd-hook')
-rw-r--r-- | systemd-hook | 52 |
1 files changed, 41 insertions, 11 deletions
diff --git a/systemd-hook b/systemd-hook index e8fe033304d2..4a62ec6c48df 100644 --- a/systemd-hook +++ b/systemd-hook @@ -26,21 +26,51 @@ udevd_live() { op="$1"; shift case "$op" in - catalog) /usr/bin/journalctl --update-catalog ;; - hwdb) /usr/bin/systemd-hwdb --usr update ;; - update) touch -c /usr ;; - sysusers) /usr/bin/systemd-sysusers ;; - tmpfiles) /usr/bin/systemd-tmpfiles --create ;; + catalog) + /usr/bin/journalctl --update-catalog + ;; + hwdb) + /usr/bin/systemd-hwdb --usr update + ;; + update) + touch -c /usr + ;; + sysusers) + /usr/bin/systemd-sysusers + ;; + tmpfiles) + /usr/bin/systemd-tmpfiles --create + ;; - daemon-reload) systemd_live; /usr/bin/systemctl daemon-reload ;; - udev-reload) udevd_live; /usr/bin/udevadm control --reload; /usr/bin/udevadm trigger ;; - binfmt) systemd_live; /usr/lib/systemd/systemd-binfmt ;; - sysctl) systemd_live; /usr/lib/systemd/systemd-sysctl ;; + daemon-reload) + systemd_live + /usr/bin/systemctl daemon-reload + ;; + udev-reload) + udevd_live + /usr/bin/udevadm control --reload + /usr/bin/udevadm trigger + /usr/bin/udevadm settle + ;; + binfmt) + systemd_live + /usr/lib/systemd/systemd-binfmt + ;; + sysctl) + systemd_live + /usr/lib/systemd/systemd-sysctl + ;; # For use by other packages - reload) systemd_live; /usr/bin/systemctl try-reload-or-restart "$@" ;; + reload) + systemd_live + /usr/bin/systemctl try-reload-or-restart "$@" + ;; - *) echo >&2 " Invalid operation '$op'"; exit 1 ;; + *) + echo >&2 " Invalid operation '$op'" + exit 1 + ;; esac exit 0 |