summaryrefslogtreecommitdiffstats
path: root/debian/tests/hooks/drop-hostname
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 05:43:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 05:43:00 +0000
commit6032561e9b12b99fa51b4b38bdeee7f831adcaee (patch)
tree30d9958682cf814635ba3fcfe6457463fed91383 /debian/tests/hooks/drop-hostname
parentAdding upstream version 0.143. (diff)
downloadinitramfs-tools-debian.tar.xz
initramfs-tools-debian.zip
Adding debian version 0.143.debian/0.143debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xdebian/tests/hooks/drop-hostname17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/tests/hooks/drop-hostname b/debian/tests/hooks/drop-hostname
new file mode 100755
index 0000000..e7b8500
--- /dev/null
+++ b/debian/tests/hooks/drop-hostname
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case "$1" in
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+rm -f "${DESTDIR}/etc/hostname"