summaryrefslogtreecommitdiff
path: root/libre/systemd/systemd-hook
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2018-06-23 23:44:37 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2018-06-23 23:44:37 -0500
commit4f5af6f84986d7d4f45e2e6a804c33507d6b5e95 (patch)
tree3972dff6dd3c1cca2d69e69d54bf7c906dc16c66 /libre/systemd/systemd-hook
parentdc36473e3972c73314fcb9bc09811871050a4645 (diff)
downloadabslibre-4f5af6f84986d7d4f45e2e6a804c33507d6b5e95.tar.gz
abslibre-4f5af6f84986d7d4f45e2e6a804c33507d6b5e95.tar.bz2
abslibre-4f5af6f84986d7d4f45e2e6a804c33507d6b5e95.zip
systemd-238.133-4.parabola1: updating version
Diffstat (limited to 'libre/systemd/systemd-hook')
-rw-r--r--libre/systemd/systemd-hook14
1 files changed, 4 insertions, 10 deletions
diff --git a/libre/systemd/systemd-hook b/libre/systemd/systemd-hook
index c52e71533..79505dfe8 100644
--- a/libre/systemd/systemd-hook
+++ b/libre/systemd/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) systemd_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