From 0d2eaa5679e5fc97b191808277bf584fe6cae522 Mon Sep 17 00:00:00 2001 From: Yurii Kolesnykov Date: Thu, 12 Sep 2019 10:34:06 +0300 Subject: 243.r25.g7d79cc96ea Signed-off-by: Yurii Kolesnykov --- systemd-hook | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'systemd-hook') diff --git a/systemd-hook b/systemd-hook index 0a664f2..6f2e899 100644 --- a/systemd-hook +++ b/systemd-hook @@ -14,7 +14,9 @@ udevd_live() { fi } -case $1 in +op="$1"; shift + +case "$op" in catalog) /usr/bin/journalctl --update-catalog ;; hwdb) /usr/bin/systemd-hwdb --usr update ;; update) touch -c /usr ;; @@ -26,7 +28,10 @@ case $1 in binfmt) systemd_live; /usr/lib/systemd/systemd-binfmt ;; sysctl) systemd_live; /usr/lib/systemd/systemd-sysctl ;; - *) echo >&2 " Invalid operation '$1'"; exit 1 ;; + # For use by other packages + reload) systemd_live; /usr/bin/systemctl try-reload-or-restart "$@" ;; + + *) echo >&2 " Invalid operation '$op'"; exit 1 ;; esac exit 0 -- cgit v1.2.3-70-g09d2