summarylogtreecommitdiffstats
path: root/lvm2_hook
diff options
context:
space:
mode:
authorChristian Hesse2015-06-29 19:27:05 +0200
committerChristian Hesse2015-06-29 19:27:05 +0200
commit30d9ea948ea6d85295a9636ce15f890bad09aad0 (patch)
tree2ec54441949e6a7a79625bafe0b6322b27b470fb /lvm2_hook
downloadaur-lvm2-git.tar.gz
initial import of lvm2-git 2.02.120.r33.g43224f2-1
Diffstat (limited to 'lvm2_hook')
-rw-r--r--lvm2_hook12
1 files changed, 12 insertions, 0 deletions
diff --git a/lvm2_hook b/lvm2_hook
new file mode 100644
index 00000000000..65de7bd2fdd
--- /dev/null
+++ b/lvm2_hook
@@ -0,0 +1,12 @@
+#!/usr/bin/ash
+
+run_earlyhook() {
+ mkdir /run/lvm
+ lvmetad
+}
+
+run_cleanuphook() {
+ kill $(cat /run/lvmetad.pid)
+}
+
+# vim: set ft=sh ts=4 sw=4 et: