virtualbox fixes

This commit is contained in:
Patrick 2024-11-14 19:32:39 +01:00
parent d884bcf6c6
commit 73c5a2e7dc
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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