diff options
Diffstat (limited to 'services')
-rw-r--r-- | services/netctl-sleep.service | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/services/netctl-sleep.service b/services/netctl-sleep.service new file mode 100644 index 0000000..301dc36 --- /dev/null +++ b/services/netctl-sleep.service @@ -0,0 +1,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 |