summaryrefslogtreecommitdiff
path: root/netctl-hook
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-10-26 00:08:15 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-10-26 00:08:15 -0400
commit6029b901d5db6824851b15194b02327edcc85419 (patch)
tree78039cbfc68eed8384d3ac19c0140f0554428c30 /netctl-hook
initial commit
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..5190f02
--- /dev/null
+++ b/netctl-hook
@@ -0,0 +1,3 @@
+#!/hint/sh
+printf -v ExecUpPost "systemctl start network-online@%q.service" "$(systemd-escape -- "$Profile")"
+printf -v ExecDownPre "systemctl stop network-online@%q.service" "$(systemd-escape -- "$Profile")"