Commit 963efd23 authored by Xiaowu Zhang's avatar Xiaowu Zhang

fix

parent 2aa5caa7
#!/bin/sh
#!/bin/bash
set -e
SCRIPT_DIR=$(realpath `dirname "$0"`)
......@@ -64,21 +64,6 @@ source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens1
iface ens1 inet dhcp
EOF
else
cat > $hostname/interfaces <<EOF
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The RJ45 interface
allow-hotplug eno1
#iface eno1 inet dhcp
......@@ -92,7 +77,6 @@ iface ens9f1 inet dhcp
EOF
fi
i=`expr $i + 1`
done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment