From 73c5a2e7dc06cc2ff5adb015d6dd2b5421bbf85f Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 14 Nov 2024 19:32:39 +0100 Subject: [PATCH] virtualbox fixes --- configs/scripts/server.sh | 4 ++-- configs/scripts/user.sh | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configs/scripts/server.sh b/configs/scripts/server.sh index b96e05c..288f98b 100755 --- a/configs/scripts/server.sh +++ b/configs/scripts/server.sh @@ -22,9 +22,9 @@ while true; do fi done -echo -e "\nauto ens3\niface ens3 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.0" | tee -a /mnt/etc/network/interfaces +echo -e "\nauto enp0s3\niface enp0s3 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.0" | tee -a /mnt/etc/network/interfaces cp /mnt/root/dhcpd.conf /mnt/etc/dhcp/ -sed -i 's/^INTERFACES=.*/INTERFACES="ens3"/' /mnt/etc/default/isc-dhcp-server +sed -i 's/^INTERFACES=.*/INTERFACES="enp0s3"/' /mnt/etc/default/isc-dhcp-server read a diff --git a/configs/scripts/user.sh b/configs/scripts/user.sh index 6c9dd8d..a10ec52 100755 --- a/configs/scripts/user.sh +++ b/configs/scripts/user.sh @@ -3,6 +3,12 @@ # This file is part of VM-Experiments. # Licensed under the GPL-3.0-or-later. See LICENSE for details. +read -p "Are you sure you want to install? (Type 'NO' to cancel, uppercase.)" install + +if [ "$install" = "NO" ]; then + reboot +fi + trap '' SIGINT SIGTERM while true; do