]> git.pld-linux.org Git - packages/dhcp.git/commitdiff
- DHCP_SERVERS changed to DHCP_SERVERS_IP,
authorkloczek <kloczek@pld-linux.org>
Fri, 22 Jun 2001 10:40:23 +0000 (10:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added support for bind dhcp relay to specified interfaces.

Changed files:
    dhcp-relay.init -> 1.8
    dhcp-relay.sysconfig -> 1.3

dhcp-relay.init
dhcp-relay.sysconfig

index 62c327c63f520545399e2b5999381708815e1ed7..8d84757ac05323d06ddfcd3f29f6dbbdd9b023b6 100644 (file)
@@ -19,11 +19,16 @@ if is_no "${NETWORKING}"; then
        exit 1
 fi
 
+if [ -n "DHCP_REALY_INTERFACES" ]; then
+       OPTIONS="-i $DHCP_REALY_INTERFACES"
+fi
+
+
 # See how we were called.
 case "$1" in
   start)
        msg_starting "DHCP Relay"
-       daemon dhcrelay $DHCP_SERVERS
+       daemon dhcrelay $OPTIONS $DHCP_SERVERS_IP
        touch /var/lock/subsys/dhcrelay
        ;;
   stop)
index 9e150767f0ff44b014169c3404865e03b7cc581c..18ecbb10199a2696222589078bd05f9095856697 100644 (file)
@@ -1,5 +1,8 @@
 # space-separated DHCP servers
-DHCP_SERVERS="server.dhcp"
+DHCP_SERVERS_IP="<IP.parent.dhcp.serwers>"
+
+# bind dhcp relay agent to interfaces
+DHCP_REALY_INTERFACES="<interfaces>"
 
 # Nice level for at
 SERVICE_RUN_NICE_LEVEL="+0"
This page took 0.497987 seconds and 4 git commands to generate.