From a320e0aa36c3fc0632a1f85c5bad0ffceba60b88 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 18 Nov 2024 20:39:01 +0100 Subject: [PATCH] maybe works? --- installation/dhcp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installation/dhcp.sh b/installation/dhcp.sh index a8339a9..e55d176 100755 --- a/installation/dhcp.sh +++ b/installation/dhcp.sh @@ -10,10 +10,10 @@ subnet 192.168.1.0 netmask 255.255.255.0 { \ range 192.168.1.10 192.168.1.100; \ option routers 192.168.1.1; \ option subnet-mask 255.255.255.0; \ - option domain-name-servers 8.8.8.8, 8.8.4.4; \ + option domain-name-servers 192.168.1.1; \ }" -echo -e 'INTERFACES="enp0s3"' | sudo tee /etc/default/isc-dhcp-server >/dev/null +echo -e "INTERFACES='$1'" | sudo tee /etc/default/isc-dhcp-server >/dev/null echo -e "$config" | sudo tee /etc/dhcp/dhcpd.conf >/dev/null