virtualbox fixes
This commit is contained in:
parent
d884bcf6c6
commit
73c5a2e7dc
2 changed files with 8 additions and 2 deletions
|
@ -22,9 +22,9 @@ while true; do
|
||||||
fi
|
fi
|
||||||
done
|
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/
|
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
|
read a
|
||||||
|
|
|
@ -3,6 +3,12 @@
|
||||||
# This file is part of VM-Experiments.
|
# This file is part of VM-Experiments.
|
||||||
# Licensed under the GPL-3.0-or-later. See LICENSE for details.
|
# 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
|
trap '' SIGINT SIGTERM
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
|
Loading…
Reference in a new issue