repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git]
/
networkmanager-dispatcher-sshd-systemd
/
sshd.systemd
blob
4f9cfc7def18370b6cd2b8e2f45d66420f9312e3
1
#!/bin/bash
2
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
10
;;
11
esac
12
fi