Package: firestarter / 1.0.3-11

02_restart_dhcp3-server.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Christian Bjälevik <nafallo@ubuntu.com>
Subject: Use dhcp3-server daemon, not dhcpd

diff -urNad firestarter-1.0.3~/src/scriptwriter.c firestarter-1.0.3/src/scriptwriter.c
--- firestarter-1.0.3~/src/scriptwriter.c	2005-01-29 13:32:08.000000000 +0100
+++ firestarter-1.0.3/src/scriptwriter.c	2007-01-05 15:53:49.042492616 +0100
@@ -179,8 +179,10 @@
 		    "		fi\n"
 		    "	fi\n\n"
 
-		    "	if [ -e /etc/init.d/dhcpd ]; then\n"
-		    "		/etc/init.d/dhcpd restart > /dev/null\n"
+		    "   if [ -e /etc/init.d/dhcp3-server ]; then\n"
+		    "		/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"
 		    "	else\n"
 		    "		/usr/sbin/dhcpd 2> /dev/null\n"
 		    "	fi\n\n"