blob: c8ca250c4d1eceaa859a195f78f0d607ba6b3526 [file] [log] [blame]
[Unit]
Description=Restore systemd-networkd network settings from /cfg
After=cfg.mount
Requires=cfg.mount
Before=network-pre.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=/usr/bin/mkdir -p /run/systemd/network
ExecStart=/bin/sh -c "[[ -f /cfg/network/eth1.network ]] && cp /cfg/network/eth1.network /run/systemd/network/ || true"
[Install]
WantedBy=network-pre.target