diff --git a/conf/turnkey.d/networking b/conf/turnkey.d/networking new file mode 100755 index 00000000..1c76f87d --- /dev/null +++ b/conf/turnkey.d/networking @@ -0,0 +1,13 @@ +#!/bin/bash -e + +# it should be enabled by default but doesn't appear to be? +systemctl enable networking.service + +if ! grep -s '^noarp' /etc/dhcpcd.conf; then + cat >> /etc/dhcpcd.conf < "$RESOLV_CONF" - fi - ;; - - deconfig) - if [ -x /sbin/resolvconf ]; then - resolvconf -d "${interface}.udhcpc" - fi - /sbin/ifconfig $interface 0.0.0.0 - ;; - - leasefail) - echo "$0: Lease failed: $message" - ;; - - nak) - echo "$0: Received a NAK: $message" - ;; - - *) - echo "$0: Unknown udhcpc command: $1"; - exit 1; - ;; -esac diff --git a/plans/net b/plans/net index 8f302c3d..521029fb 100644 --- a/plans/net +++ b/plans/net @@ -5,6 +5,6 @@ bind9-host # Version of 'host' bundled with BIND 9.X netbase # Basic TCP/IP networking system net-tools # The NET-3 networking toolkit iproute2 # networking and traffic control tools -udhcpc # very small DHCP client +dhcpcd-base # A very small DHCPv4 and DHCPv6 client traceroute # Traces the route taken by packets over a tcp/ip network iputils-ping # Tools to test the reachability of network hosts