Gitiles
Code Review
Sign In
gerrit.cesnet.cz
/
CzechLight
/
br2-external
/
b670d3387343a2e5681b58cd01c11ca7af7e6b5f
/
.
/
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