]> git.pld-linux.org Git - packages/dhcp.git/commitdiff
- fixed typo in DHCP_RELAY_INTERFACES and passing its content to the command line
authorJacek Konieczny <jajcus@pld-linux.org>
Wed, 1 Jun 2005 13:45:26 +0000 (13:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dhcp-relay.init -> 1.17

dhcp-relay.init

index d6e3f1e4cdfa6eaaaa407ca32d723cfe91014556..a76b49d53b97a90fe6d6cf965e77a52eb526ef16 100644 (file)
@@ -11,6 +11,7 @@
 . /etc/sysconfig/network
 
 # Demon specified configuration.
+OPTIONS=""
 . /etc/sysconfig/dhcp-relay
 
 # Check that networking is up.
@@ -23,8 +24,10 @@ else
        exit 0
 fi
 
-if [ -n "DHCP_REALY_INTERFACES" ]; then
-       OPTIONS="-i $DHCP_REALY_INTERFACES"
+if [ -n "DHCP_RELAY_INTERFACES" ]; then
+       for iface in $DHCP_RELAY_INTERFACES ; do
+               OPTIONS="$OPTIONS -i $iface"
+       done
 fi
 
 RETVAL=0
This page took 0.046628 seconds and 4 git commands to generate.