diff options
author | Yurii Kolesnykov | 2018-09-09 13:56:35 +0300 |
---|---|---|
committer | Yurii Kolesnykov | 2018-09-09 13:56:35 +0300 |
commit | 0768ef96381e01ac2939947af6272510473fbed0 (patch) | |
tree | 6d3bd2db35a136e1b1a7db05244f411a29b70df0 /systemd-hook | |
parent | 33d505503506cbfd90966f002316aad20d2d8480 (diff) | |
download | aur-0768ef96381e01ac2939947af6272510473fbed0.tar.gz |
239.729-2
Diffstat (limited to 'systemd-hook')
-rw-r--r-- | systemd-hook | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/systemd-hook b/systemd-hook index 4fdee8e47936..0a664f2c5824 100644 --- a/systemd-hook +++ b/systemd-hook @@ -14,23 +14,17 @@ udevd_live() { fi } -each_conf() { - while read -r f; do - "$@" "$(basename "$f")" - done -} - case $1 in catalog) /usr/bin/journalctl --update-catalog ;; hwdb) /usr/bin/systemd-hwdb --usr update ;; update) touch -c /usr ;; - sysusers) each_conf /usr/bin/systemd-sysusers ;; - tmpfiles) each_conf /usr/bin/systemd-tmpfiles --create ;; + 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 ;; - binfmt) systemd_live; each_conf /usr/lib/systemd/systemd-binfmt ;; - sysctl) systemd_live; each_conf /usr/lib/systemd/systemd-sysctl ;; + binfmt) systemd_live; /usr/lib/systemd/systemd-binfmt ;; + sysctl) systemd_live; /usr/lib/systemd/systemd-sysctl ;; *) echo >&2 " Invalid operation '$1'"; exit 1 ;; esac |