From 6032561e9b12b99fa51b4b38bdeee7f831adcaee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 3 Jun 2024 07:43:00 +0200 Subject: Adding debian version 0.143. Signed-off-by: Daniel Baumann --- debian/tests/hooks/drop-hostname | 17 +++++++++++++++++ debian/tests/hooks/persistent-net | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100755 debian/tests/hooks/drop-hostname create mode 100755 debian/tests/hooks/persistent-net (limited to 'debian/tests/hooks') 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" diff --git a/debian/tests/hooks/persistent-net b/debian/tests/hooks/persistent-net new file mode 100755 index 0000000..819109e --- /dev/null +++ b/debian/tests/hooks/persistent-net @@ -0,0 +1,32 @@ +#!/bin/sh + +PREREQ="" + +prereqs() +{ + echo "$PREREQ" +} + +case "$1" in +prereqs) + prereqs + exit 0 + ;; +esac + +persist_net() { + name="$1" + mac="$2" + + mkdir -p "${DESTDIR}/etc/systemd/network" + cat >"${DESTDIR}/etc/systemd/network/10-persistent-${name}.link" <