Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Script to up/down openntpd upon dhcpcd up/down of interface.

  • Loading branch information...
commit 0090b19ed252daa49ac5c403d45477c656d57b27 1 parent 91e7d20
@ngty authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 sys/usr/lib/dhcpcd/dhcpcd-hooks/99-openntpd
View
7 sys/usr/lib/dhcpcd/dhcpcd-hooks/99-openntpd
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if $if_up; then
+ rc.d start openntpd
+elif $if_down; then
+ rc.d stop openntpd
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.