Gitiles
Code Review
Sign In
gerrit.cesnet.cz
/
CzechLight
/
br2-external
/
5ec240b9136cd903aea1766cb3a664b30cda4471
/
.
/
board
/
czechlight
/
common
/
dhcp-network.sh
blob: 88e6cc4c7a9aaa0f8edb7900f8d84ba80b8a4066 [
file
] [
log
] [
blame
]
#!/bin/bash
set
-
eux
-
o pipefail
shopt
-
s failglob
for
IFACE
in
eth0 enp0s13 enp0s14
;
do
cat
<<
EOF
>
$
{
TARGET_DIR
}/
usr
/
lib
/
systemd
/
network
/
$
{
IFACE
}.
network
[
Match
]
Name
=
$
{
IFACE
}
[
Network
]
DHCP
=
yes
EOF
done