updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / networkmanager-dispatcher-sshd-systemd / sshd.systemd
blob4f9cfc7def18370b6cd2b8e2f45d66420f9312e3
1 #!/bin/bash
3 if [ "$(systemctl is-enabled sshd.service)" == "enabled" ]; then
4 case "${2}" in
5 up|vpn-up)
6 systemctl start sshd.service
7 ;;
8 down|vpn-down)
9 systemctl stop sshd.service
11 esac