summaryrefslogtreecommitdiff
path: root/initramfs/hook
diff options
context:
space:
mode:
authorIan Campbell <ijc@debian.org>2019-01-06 13:37:59 +0000
committerIan Campbell <ijc@debian.org>2019-01-06 13:37:59 +0000
commit074ba55a4d6cb747451295825b357533fa943d2d (patch)
treef2040020f91f3736be798e0cee2514ede8406669 /initramfs/hook
Import qcontrol_0.5.6-4.debian.tar.xz
[dgit import tarball qcontrol 0.5.6-4 qcontrol_0.5.6-4.debian.tar.xz]
Diffstat (limited to 'initramfs/hook')
-rwxr-xr-xinitramfs/hook24
1 files changed, 24 insertions, 0 deletions
diff --git a/initramfs/hook b/initramfs/hook
new file mode 100755
index 0000000..145f3c3
--- /dev/null
+++ b/initramfs/hook
@@ -0,0 +1,24 @@
+#!/bin/sh
+PREREQ=""
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+if [ ! -x /usr/sbin/qcontrol ] || [ ! -f /etc/qcontrol.conf ] ; then
+ exit 0
+fi
+
+. /usr/share/initramfs-tools/hook-functions
+# Begin real processing below this line
+
+copy_exec /usr/sbin/qcontrol /sbin
+cp /etc/qcontrol.conf ${DESTDIR}/etc/qcontrol.conf
+exit 0