Package: firestarter / 1.0.3-11

02_restart_dnsmasq.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
From: Paul Cupis <paul@cupis.co.uk>
Subject: restart dnsmasq only if it exists

diff -urNad firestarter-1.0.3~/src/scriptwriter.c firestarter-1.0.3/src/scriptwriter.c
--- firestarter-1.0.3~/src/scriptwriter.c	2007-08-05 10:06:35.000000000 +0100
+++ firestarter-1.0.3/src/scriptwriter.c	2007-08-05 10:07:02.000000000 +0100
@@ -183,6 +183,8 @@
 		    "		/etc/init.d/dhcp3-server restart > /dev/null\n"
 		    "	elif [ -e /etc/init.d/dhcpd ]; then\n"
 		    "		  /etc/init.d/dhcpd restart > /dev/null\n"
+		    "	elif [ -e /etc/init.d/dnsmasq ]; then\n"
+		    "		  /etc/init.d/dnsmasq restart > /dev/null\n"
 		    "	else\n"
 		    "		/usr/sbin/dhcpd 2> /dev/null\n"
 		    "	fi\n\n"