summaryrefslogtreecommitdiffstats
path: root/recipes-test/demo-network-config/static-network-config.inc
blob: e64675e234ade65b791f7f0505e06309d601c781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
SRC_URI_append = "\
    file://26-static-client.network \
    "

SECONDARY_INTERFACE ?= "enp0s5"

do_install_append() {
    install -d ${D}/usr/lib/systemd/network
    install -m 0644 ${WORKDIR}/26-static-client.network ${D}/usr/lib/systemd/network/
    sed -i -e 's|@ADDR@|${IP_ADDR}|g' \
           -e 's|@IFNAME@|${SECONDARY_INTERFACE}|g' \
           ${D}/usr/lib/systemd/network/26-static-client.network

}

# vim:set ts=4 sw=4 sts=4 expandtab: