From 4480b5edef28c612acbe2fce4f684f4d2266aed1 Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Thu, 28 Jan 2016 16:14:24 -0600 Subject: [PATCH] Add support for gentoo to simple-init Needed to remove interface config Depends-On: Id1487bc82ee4b03aa57258f71f48ca7d377afc47 Change-Id: Iaa1a16b0f65c088f03c9b440ef16427e93ec9b03 Closes-Bug: 1537453 --- .../simple-init/install.d/60-simple-init-remove-interfaces | 3 +++ elements/simple-init/pkg-map | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/elements/simple-init/install.d/60-simple-init-remove-interfaces b/elements/simple-init/install.d/60-simple-init-remove-interfaces index 6d2cc621..4cfd0de7 100755 --- a/elements/simple-init/install.d/60-simple-init-remove-interfaces +++ b/elements/simple-init/install.d/60-simple-init-remove-interfaces @@ -18,6 +18,9 @@ rm -f /etc/network/interfaces.d/eth0.cfg # Debian rm -f /etc/network/interfaces.d/eth0 +# Gentoo +rm -f /etc/conf.d/net* + # /etc/network/interfaces distributions if [ -f "/etc/network/interfaces" ]; then printf "auto lo\niface lo inet loopback\n\n" > /etc/network/interfaces diff --git a/elements/simple-init/pkg-map b/elements/simple-init/pkg-map index 12ef943c..4dbdff8c 100644 --- a/elements/simple-init/pkg-map +++ b/elements/simple-init/pkg-map @@ -5,6 +5,11 @@ }, "debian": { "isc-dhcp-client": "isc-dhcp-client" + }, + "gentoo": { + "isc-dhcp-client": "net-misc/dhcp", + "python-pip": "dev-python/pip", + "net-tools": "sys-apps/net-tools" } }, "default": {