diff --git a/install.sh b/install.sh index b188863..435315c 100644 --- a/install.sh +++ b/install.sh @@ -33,6 +33,11 @@ read nameserver_ip echo -e "${ColorGreen}Введите IP-адреса для gateway сервера (пример: 192.168.0.1):${ColorOff}" read gatewayserver_ip +ip -o link show | awk '{print $2,$9}' + +echo -e "${ColorGreen}Введите имя сеетвого устройства (пример: enp6s19):${ColorOff}" +read netdevice + apt-get -y update && apt-get -y upgrade ### https://dondub.com/2021/07/udalenie-cloud-init-iz-ubuntu-server-21-04/ @@ -64,7 +69,7 @@ echo "# This is the network config written by 'subiquity' network: version: 2 ethernets: - [NET_DEVICE_ID]: + $netdevice: dhcp4: no addresses: - $server_ip