From 4b607c3ad8956a1715092d3cbc20ce8be0ca91b8 Mon Sep 17 00:00:00 2001 From: Tim Eertmoed Date: Mon, 28 Oct 2024 14:03:39 +0100 Subject: [PATCH] =?UTF-8?q?etc/systemd/system/hostname.service=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/systemd/system/hostname.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 etc/systemd/system/hostname.service diff --git a/etc/systemd/system/hostname.service b/etc/systemd/system/hostname.service new file mode 100644 index 0000000..c3eeabe --- /dev/null +++ b/etc/systemd/system/hostname.service @@ -0,0 +1,11 @@ +[Unit] +Description=Set Hostname from DHCP +After=network.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/custom/hostname +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target