5 # description: DHCP Relay
7 # Source function library.
8 . /etc/rc.d/init.d/functions
10 # Source networking configuration.
11 . /etc/sysconfig/network
13 # Demon specified configuration.
14 . /etc/sysconfig/dhcp-relay
16 # Check that networking is up.
17 if is_no "${NETWORKING}"; then
18 msg_Network_Down "DHCP Realay"
22 if [ -n "DHCP_REALY_INTERFACES" ]; then
23 OPTIONS="-i $DHCP_REALY_INTERFACES"
27 # See how we were called.
30 msg_starting "DHCP Relay"
31 daemon dhcrelay $OPTIONS $DHCP_SERVERS_IP
32 touch /var/lock/subsys/dhcrelay
35 msg_stopping "DHCP Relay"
37 rm -f /var/lock/subsys/dhcrelay
47 msg_Usage "$0 {start|stop|restart|status}"