#!/bin/sh
# Begin $network-devices/services/dhclient
                                                                                
# Based upon lfs-bootscripts-1.12 $network_devices/if{down,up}
# Rewritten by Nathan Coulson <nathan@linuxfromscratch.org>
# Adapted for dhclient by DJ Lucas <dj@lucasit.com>

. /etc/sysconfig/rc
. $rc_functions
. $network_devices/ifconfig.$1
                                                                                
case "$2" in
        up)
                echo "Bringing up the $1 interface (dhclient)..."
                /sbin/dhclient $1 $DHCP_START
                evaluate_retval
        ;;
                                                                                
        down)
                echo "Bringing down the $1 interface (dhclient)..."
                /sbin/dhclient $1 $DHCP_STOP
                evaluate_retval
        ;;
                                                                                
        *)
                echo "Usage: $0 [interface] {up|down}"
                exit 1
        ;;
esac
                                                                                
# End $network_devices/services/dhclient
