From deb6f69095495efc775569c0c8f0846af3512508 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 20 Feb 2023 14:28:45 +0100 Subject: debvm-create: add --initsystem option This option allows changing the init system. The notable addition is sysv. --- share/customize-ifupdown.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 share/customize-ifupdown.sh (limited to 'share') diff --git a/share/customize-ifupdown.sh b/share/customize-ifupdown.sh new file mode 100755 index 0000000..c556d43 --- /dev/null +++ b/share/customize-ifupdown.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# Copyright 2023 Helmut Grohne +# SPDX-License-Identifier: MIT +# +# This is a mmdebstrap customize hook that configures ifupdown for dhcp. +# It expects ifupdown and isc-dhcp-client to be installed. + +set -eu + +TARGET=$1 + +IFFILE=interfaces +test -d "$TARGET/etc/network/interfaces.d" && IFFILE="interfaces.d/eth" + +cat >"$TARGET/etc/network/$IFFILE" <