Jan Kundrát | 04e72cd | 2017-04-21 22:44:36 +0200 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | set -eux -o pipefail | ||||
4 | shopt -s failglob | ||||
5 | |||||
6 | for IFACE in eth0 enp0s13 enp0s14; do | ||||
7 | cat <<EOF > ${TARGET_DIR}/usr/lib/systemd/network/${IFACE}.network | ||||
8 | [Match] | ||||
9 | Name=${IFACE} | ||||
10 | [Network] | ||||
11 | DHCP=yes | ||||
12 | EOF | ||||
13 | done |