summaryrefslogtreecommitdiff
path: root/libre-testing/systemd/systemd-hook
diff options
context:
space:
mode:
authorBruno Cichon <ebrasca@librepanther.com>2018-10-01 19:00:24 +0200
committerBruno Cichon <ebrasca@librepanther.com>2018-10-01 19:00:24 +0200
commit7b0e23aa952d001065f3f2432e4a6c57ac581b5c (patch)
tree71aa12fa4c5e06a5328f04dad597343dd95e6e46 /libre-testing/systemd/systemd-hook
parent6a6c10b720f6e8181721200dbb7c0a9b2ba543f5 (diff)
downloadabslibre-7b0e23aa952d001065f3f2432e4a6c57ac581b5c.tar.gz
abslibre-7b0e23aa952d001065f3f2432e4a6c57ac581b5c.tar.bz2
abslibre-7b0e23aa952d001065f3f2432e4a6c57ac581b5c.zip
Remove filesystem and systemd from libre-testing
Diffstat (limited to 'libre-testing/systemd/systemd-hook')
-rw-r--r--libre-testing/systemd/systemd-hook32
1 files changed, 0 insertions, 32 deletions
diff --git a/libre-testing/systemd/systemd-hook b/libre-testing/systemd/systemd-hook
deleted file mode 100644
index 0a664f2c5..000000000
--- a/libre-testing/systemd/systemd-hook
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh -e
-
-systemd_live() {
- if [ ! -d /run/systemd/system ]; then
- echo >&2 " Skipped: Current root is not booted."
- exit 0
- fi
-}
-
-udevd_live() {
- if [ ! -d /run/udev ]; then
- echo >&2 " Skipped: Device manager is not running."
- exit 0
- fi
-}
-
-case $1 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 ;;
-
- daemon-reload) systemd_live; /usr/bin/systemctl daemon-reload ;;
- udev-reload) udevd_live; /usr/bin/udevadm control --reload ;;
- binfmt) systemd_live; /usr/lib/systemd/systemd-binfmt ;;
- sysctl) systemd_live; /usr/lib/systemd/systemd-sysctl ;;
-
- *) echo >&2 " Invalid operation '$1'"; exit 1 ;;
-esac
-
-exit 0