blob: c8ca250c4d1eceaa859a195f78f0d607ba6b3526 [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
11ExecStart=/bin/sh -c "[[ -f /cfg/network/eth1.network ]] && cp /cfg/network/eth1.network /run/systemd/network/ || true"
12
13[Install]
14WantedBy=network-pre.target