16 lines
361 B
Bash
Executable File
16 lines
361 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
echo "" > /etc/network/interfaces
|
|
echo "auto lo" >> /etc/network/interfaces
|
|
echo "iface lo inet loopback" >> /etc/network/interfaces
|
|
|
|
echo "" >> /etc/network/interfaces
|
|
echo "auto eth0" >> /etc/network/interfaces
|
|
echo "iface eth0 inet dhcp" >> /etc/network/interfaces
|