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