Tomáš Pecka | 73720dd | 2021-02-16 20:06:02 +0100 | [diff] [blame] | 1 | [Unit] |
2 | Description=Restore systemd-networkd network settings from /cfg | ||||
3 | After=cfg.mount | ||||
4 | Requires=cfg.mount | ||||
5 | Before=network-pre.target | ||||
6 | |||||
7 | [Service] | ||||
8 | Type=oneshot | ||||
9 | RemainAfterExit=yes | ||||
10 | ExecStartPre=/usr/bin/mkdir -p /run/systemd/network | ||||
11 | ExecStart=/bin/sh -c "[[ -f /cfg/network/eth1.network ]] && cp /cfg/network/eth1.network /run/systemd/network/ || true" | ||||
12 | |||||
13 | [Install] | ||||
14 | WantedBy=network-pre.target |