]> git.pld-linux.org Git - packages/dhcp.git/commitdiff
- added $DHCPD_INTERFACES
authorArtur Frysiak <artur@frysiak.net>
Wed, 1 Sep 1999 15:50:16 +0000 (15:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dhcp.init -> 1.5
    dhcp.sysconfig -> 1.2

dhcp.init
dhcp.sysconfig

index d71f72d4e67dc81c30c448097e5d262cab22b26b..36d501cb05b866ad03e906acbc401ec4f753899f 100644 (file)
--- a/dhcp.init
+++ b/dhcp.init
 . /etc/sysconfig/network
 
 # Get service config
-[ -f /etc/sysconfig/dhcp ] && . /etc/sysconfig/dhcp
+[ -f /etc/sysconfig/dhcpd ] && . /etc/sysconfig/dhcpd
 
 # Check that networking is up.
 if [ "${NETWORKING}" = "no" ]; then
-       echo "WARNING: Networking is down. Dhcpd sercice can't be runed."
+       nls "WARNING: Networking is down. Dhcpd sercice can't be runed."
        exit 1
 fi
 
@@ -26,9 +26,9 @@ case "$1" in
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/dhcpd ]; then
                show Starting DHCP Server
-               daemon dhcpd
+               daemon dhcpd $DHCPD_INTERFACES
        else
-               echo "dhcpd already is running"
+               nls "dhcpd already is running\n"
        fi
        touch /var/lock/subsys/dhcpd
        show Starting DHCP Server
@@ -49,7 +49,7 @@ case "$1" in
        status dhcpd
        ;;
   *)
-       echo "Usage: $0 {start|stop|restart|reload|status}"
+       nls "Usage: $0 {start|stop|restart|reload|status}"
        exit 1
 esac
 
index 434190e4b02a90314bb65d2db28817e0cd383d2a..3a12d830cffa2bced76b383efcfec3261838eeee 100644 (file)
@@ -1,2 +1,6 @@
 # Nice level for at
 SERVICE_RUN_NICE_LEVEL="+0"
+
+# The  names of the network interfaces on which dhcpd should
+# listen for broadcasts (separated by space)
+DHCPD_INTERFACES=""
This page took 0.102711 seconds and 4 git commands to generate.