summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2016-01-22 11:29:32 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2016-01-22 11:29:32 +0100
commit945bfece32b1b9230b4805172a0d5524d29d1ed9 (patch)
tree789c0ac014ff2d4cd528492775fb5e74273caebd /template
parent65026d6f731b362b0d94b088f679696752c299fc (diff)
downloadOpenBSD-firewall-945bfece32b1b9230b4805172a0d5524d29d1ed9.tar.gz
OpenBSD-firewall-945bfece32b1b9230b4805172a0d5524d29d1ed9.tar.bz2
- probe and copy all shared at the very end
- have binaries for optional config be copied on demand - added restart_dhcpd script
Diffstat (limited to 'template')
-rwxr-xr-xtemplate/usr/sbin/restart_dhcpd10
1 files changed, 10 insertions, 0 deletions
diff --git a/template/usr/sbin/restart_dhcpd b/template/usr/sbin/restart_dhcpd
new file mode 100755
index 0000000..48a2849
--- /dev/null
+++ b/template/usr/sbin/restart_dhcpd
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+echo "dhcpd: stopping ..."
+pkill dhcpd
+sleep 3
+
+echo "dhcpd: restarting ..."
+/usr/sbin/dhcpd -c /etc/dhcpd.conf vr2
+
+echo "dhcpd: running."