[uClibc-cvs] svn commit: trunk/buildroot/package: dhcp tftpd

andersen at uclibc.org andersen at uclibc.org
Thu Apr 21 17:36:05 UTC 2005


Author: andersen
Date: 2005-04-21 11:36:04 -0600 (Thu, 21 Apr 2005)
New Revision: 10140

Log:
Update init scripts a bit.  Don't mess with /etc/default for now.


Removed:
   trunk/buildroot/package/dhcp/default-relay
   trunk/buildroot/package/dhcp/default-server
   trunk/buildroot/package/tftpd/default-tftpd

Modified:
   trunk/buildroot/package/dhcp/init-relay
   trunk/buildroot/package/dhcp/init-server
   trunk/buildroot/package/tftpd/init-tftpd


Changeset:
Deleted: trunk/buildroot/package/dhcp/default-relay
===================================================================
--- trunk/buildroot/package/dhcp/default-relay	2005-04-21 01:49:05 UTC (rev 10139)
+++ trunk/buildroot/package/dhcp/default-relay	2005-04-21 17:36:04 UTC (rev 10140)
@@ -1,12 +0,0 @@
-# Defaults for dhcp-relay initscript
-# sourced by /etc/init.d/dhcp-relay
-
-# What servers should the DHCP relay forward requests to?
-# e.g: SERVERS="192.168.0.1"
-SERVERS=""
-
-# On what interfaces should the DHCP relay (dhrelay) serve DHCP requests?
-INTERFACES=""
-
-# Additional options that are passed to the DHCP relay daemon?
-OPTIONS=""
\ No newline at end of file

Deleted: trunk/buildroot/package/dhcp/default-server
===================================================================
--- trunk/buildroot/package/dhcp/default-server	2005-04-21 01:49:05 UTC (rev 10139)
+++ trunk/buildroot/package/dhcp/default-server	2005-04-21 17:36:04 UTC (rev 10140)
@@ -1,7 +0,0 @@
-# Defaults for dhcp initscript
-# sourced by /etc/init.d/dhcp-server
-# installed at /etc/default/dhcp-server by the maintainer scripts
-
-# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
-#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
-INTERFACES=""

Modified: trunk/buildroot/package/dhcp/init-relay
===================================================================
--- trunk/buildroot/package/dhcp/init-relay	2005-04-21 01:49:05 UTC (rev 10139)
+++ trunk/buildroot/package/dhcp/init-relay	2005-04-21 17:36:04 UTC (rev 10140)
@@ -3,17 +3,26 @@
 # $Id: dhcp3-relay,v 1.1 2004/04/16 15:41:08 ml Exp $
 #
 
+
+# What servers should the DHCP relay forward requests to?
+# e.g: SERVERS="192.168.0.1"
+SERVERS=""
+
+# On what interfaces should the DHCP relay (dhrelay) serve DHCP requests?
+INTERFACES=""
+
+# Additional options that are passed to the DHCP relay daemon?
+OPTIONS=""
+
+
+
+
 # It is not safe to start if we don't have a default configuration...
-if [ ! -f /etc/default/dhcp-relay ]; then
-	echo "/etc/default/dhcp-relay does not exist! - Aborting..."
-	echo "create this file to fix the problem."
-	exit 1
-fi
+echo "/etc/init.d/dhcp-relay not yet configured! - Aborting..."
+exit 1;
 
-# Read init script configuration (interfaces the daemon should listen on
-# and the DHCP server we should forward requests to.)
-. /etc/default/dhcp-relay
 
+
 # Build command line for interfaces (will be passed to dhrelay below.)
 IFCMD=""
 if test "$INTERFACES" != ""; then

Modified: trunk/buildroot/package/dhcp/init-server
===================================================================
--- trunk/buildroot/package/dhcp/init-server	2005-04-21 01:49:05 UTC (rev 10139)
+++ trunk/buildroot/package/dhcp/init-server	2005-04-21 17:36:04 UTC (rev 10140)
@@ -3,18 +3,22 @@
 # $Id: dhcp3-server.init.d,v 1.4 2003/07/13 19:12:41 mdz Exp $
 #
 
-test -f /usr/sbin/dhcpd || exit 0
 
+
+# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
+#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
+INTERFACES=""
+
+
 # It is not safe to start if we don't have a default configuration...
-if [ ! -f /etc/default/dhcp-server ]; then
-	echo "/etc/default/dhcp-server does not exist! - Aborting..."
-	exit 0
-fi
+echo "/etc/init.d/dhcp-server not yet configured! - Aborting..."
+exit 1;
 
-# Read init script configuration (so far only interfaces the daemon
-# should listen on.)
-. /etc/default/dhcp-server
 
+
+test -f /usr/sbin/dhcpd || exit 0
+
+
 case "$1" in
 	start)
 		echo -n "Starting DHCP server: "

Deleted: trunk/buildroot/package/tftpd/default-tftpd
===================================================================
--- trunk/buildroot/package/tftpd/default-tftpd	2005-04-21 01:49:05 UTC (rev 10139)
+++ trunk/buildroot/package/tftpd/default-tftpd	2005-04-21 17:36:04 UTC (rev 10140)
@@ -1,3 +0,0 @@
-#Defaults for tftpd-hpa
-RUN_DAEMON="yes"
-OPTIONS="-l -s /var/lib/tftpboot"

Modified: trunk/buildroot/package/tftpd/init-tftpd
===================================================================
--- trunk/buildroot/package/tftpd/init-tftpd	2005-04-21 01:49:05 UTC (rev 10139)
+++ trunk/buildroot/package/tftpd/init-tftpd	2005-04-21 17:36:04 UTC (rev 10140)
@@ -3,6 +3,17 @@
 # Author:	Jaakko Niemi <liiwi at iki.fi>
 # Modified from skeleton file in sarge
 
+
+
+
+
+#Defaults for tftpd-hpa
+RUN_DAEMON="yes"
+OPTIONS="-l -s /var/lib/tftpboot"
+
+
+
+
 set -e
 
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@@ -10,19 +21,14 @@
 NAME=in.tftpd
 DAEMON=/usr/sbin/$NAME
 PIDFILE=/var/run/$NAME.pid
-SCRIPTNAME=/etc/init.d/tftpd-hpa
+SCRIPTNAME=/etc/init.d/S80tftpd-hpa
 
 # Gracefully exit if the package has been removed.
 test -x $DAEMON || exit 0
 
-# Read config file if it is present.
-if [ -r /etc/default/tftpd-hpa ]
-then
-	. /etc/default/tftpd-hpa
-fi
 
-if [ "$RUN_DAEMON" = "yes" ] ; then
-         echo "tftpd-hpa disabled in /etc/default/tftpd-hpa"
+if [ "$RUN_DAEMON" != "yes" ] ; then
+         echo "tftpd-hpa disabled in /etc/init.d/S80tftpd-hpa"
 	 exit 0
 fi
 




More information about the uClibc-cvs mailing list