fix
This commit is contained in:
parent
f8fc6da54c
commit
7ed5cedde6
1 changed files with 4 additions and 5 deletions
|
@ -22,10 +22,9 @@ while true; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
ip addr flush 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
|
||||||
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 /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
|
read a
|
||||||
sed -i 's/^INTERFACES=.*/INTERFACES="eth0"/' /etc/default/isc-dhcp-server
|
|
||||||
|
|
Loading…
Reference in a new issue