From 30ef4917b2848294c71105ccbbdc80b5eee751ee Mon Sep 17 00:00:00 2001 From: kosenka Date: Fri, 4 Apr 2025 11:35:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20install.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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