gns3-registry/packer/alpine-linux/scripts/setup.sh

30 lines
555 B
Bash
Raw Normal View History

2020-08-03 10:27:15 +00:00
# install additional packages
apk add nano busybox-extras
# network configuration
cat > /etc/network/interfaces << EOF
#
2020-08-03 10:27:15 +00:00
# This is a sample network config, uncomment lines to configure the network
#
2020-08-03 10:27:15 +00:00
# Loopback interface
auto lo
iface lo inet loopback
2020-08-03 10:27:15 +00:00
# Static config for eth0
#auto eth0
#iface eth0 inet static
# address 192.168.0.2
# netmask 255.255.255.0
# gateway 192.168.0.1
# up echo nameserver 192.168.0.1 > /etc/resolv.conf
2020-08-03 10:27:15 +00:00
# DHCP config for eth0
# auto eth0
# iface eth0 inet dhcp
# hostname $(hostname)
EOF
2020-08-03 10:27:15 +00:00
cat > /etc/resolv.conf << EOF
EOF