This commit is contained in:
Patrick 2024-11-14 16:36:06 +01:00
parent f8fc6da54c
commit 7ed5cedde6

View file

@ -22,10 +22,9 @@ while true; do
fi
done
ip addr flush dev eth0
ip addr add 192.168.1.1/24 dev eth0
echo -e "\nauto eth0\niface eth0 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.1" | tee -a /mnt/etc/network/interfaces
echo -e "\nauto eth0\niface eth0 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.1" | tee -a /etc/network/interfaces
cp dhcpd.conf /mnt/etc/dhcp/
sed -i 's/^INTERFACES=.*/INTERFACES="eth0"/' /mnt/etc/default/isc-dhcp-server
cp dhcpd.conf /etc/dhcp/dhcpd.conf
sed -i 's/^INTERFACES=.*/INTERFACES="eth0"/' /etc/default/isc-dhcp-server
read a