blob: 4be3ad616503b52ed1e20ef2d87c6a82d0200f4b [file] [log] [blame]
Tomáš Pecka73720dd2021-02-16 20:06:02 +01001[Unit]
2Description=Restore systemd-networkd network settings from /cfg
3After=cfg.mount
4Requires=cfg.mount
5Before=network-pre.target
6
7[Service]
8Type=oneshot
9RemainAfterExit=yes
10ExecStartPre=/usr/bin/mkdir -p /run/systemd/network
Tomáš Pecka64a012b2021-02-22 16:07:55 +010011ExecStart=/bin/sh -c "[[ -f /cfg/network/eth1.network ]] && cp /cfg/network/eth1.network /run/systemd/network/ || cp /usr/lib/systemd/network/eth1.network /run/systemd/network/"
Tomáš Pecka73720dd2021-02-16 20:06:02 +010012
13[Install]
14WantedBy=network-pre.target