Add NetworkManager dispatcher scripts

This commit is contained in:
Star Brilliant committed 2017-11-25 15:59:09 +08:00
1 parent a0bd8eb8a1
commit b3ddec1aaa
4 files changed
+38

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
case "$2" in
up)
/usr/bin/systemctl is-active doh-client.service > /dev/null && /usr/bin/systemctl restart doh-client.service
;;
down)
/usr/bin/systemctl is-active doh-client.service > /dev/null && /usr/bin/systemctl restart doh-client.service
;;
*)
exit 0
;;
esac
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
case "$2" in
up)
/usr/bin/systemctl is-active doh-server.service > /dev/null && /usr/bin/systemctl restart doh-server.service
;;
down)
/usr/bin/systemctl is-active doh-server.service > /dev/null && /usr/bin/systemctl restart doh-server.service
;;
*)
exit 0
;;
esac