summaryrefslogtreecommitdiff
path: root/netctl-hook
diff options
context:
space:
mode:
Diffstat (limited to 'netctl-hook')
-rwxr-xr-xnetctl-hook3
1 files changed, 3 insertions, 0 deletions
diff --git a/netctl-hook b/netctl-hook
new file mode 100755
index 0000000..01f8619
--- /dev/null
+++ b/netctl-hook
@@ -0,0 +1,3 @@
+#!/hint/bash
+printf -v ExecUpPost "systemctl start network-online@%q.service" "$(systemd-escape -- "$Profile")"
+printf -v ExecDownPre "systemctl stop network-online@%q.service" "$(systemd-escape -- "$Profile")"