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 |
Tomáš Pecka | 64a012b | 2021-02-22 16:07:55 +0100 | [diff] [blame^] | 11 | ExecStart=/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áš Pecka | 73720dd | 2021-02-16 20:06:02 +0100 | [diff] [blame] | 12 | |
| 13 | [Install] |
| 14 | WantedBy=network-pre.target |