| 1 | [Unit] |
| 2 | Description=netctl sleep hook |
| 3 | Documentation=man:netctl.special(7) |
| 4 | Before=sleep.target |
| 5 | StopWhenUnneeded=yes |
| 6 | |
| 7 | [Service] |
| 8 | Type=oneshot |
| 9 | RemainAfterExit=yes |
| 10 | ExecStart=/usr/bin/netctl store ; /usr/bin/netctl stop-all |
| 11 | ExecStop=-/usr/bin/netctl restore |
| 12 | |
| 13 | [Install] |
| 14 | WantedBy=sleep.target |