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