Permalink
Browse files

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

  • Loading branch information...
1 parent 91e7d20 commit 0090b19ed252daa49ac5c403d45477c656d57b27 @ngty committed Jan 30, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 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

0 comments on commit 0090b19

Please sign in to comment.