#!/bin/bash

cat /dev/null > /etc/netplan/00-installer-config.yaml

cat > /etc/netplan/00-installer-config.yaml <<EOF
# This is the network config written by 'subiquity'
network:
  ethernets:
    eth0:
      dhcp4: no
      addresses: [127.0.0.1/24]
      gateway4: 1.1.1.1
      nameservers:
        addresses: [114.114.114.114, 5.5.5.5]
  version: 2

EOF

netplan apply


rm -rf /tmp/change.sh
