]> git.pld-linux.org Git - packages/dhcp.git/blobdiff - dhcp-relay.init
- -fPIC for alpha too; rel 4
[packages/dhcp.git] / dhcp-relay.init
index 214f7ad6d6a76c64986d0870760819eb1740f66e..a76b49d53b97a90fe6d6cf965e77a52eb526ef16 100644 (file)
 . /etc/sysconfig/network
 
 # Demon specified configuration.
+OPTIONS=""
 . /etc/sysconfig/dhcp-relay
 
 # Check that networking is up.
 if is_yes "${NETWORKING}"; then
-       if [ ! -f /var/lock/subsys/network ]; then
+       if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
                msg_network_down "DHCP realay"
                exit 1
        fi
@@ -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.098759 seconds and 4 git commands to generate.