Current BE-LFS (but w/ GCC 3.3.3) merged -> 6.0 branch
[linux_from_scratch.git] / bootscripts / blfs / sysconfig / network-devices / services / dhclient
blobeea98f969d7c124342da2028acc1f61d5cea886e
1 #!/bin/sh
2 # Begin $network-devices/services/dhclient
4 # Based upon lfs-bootscripts-1.12 $network_devices/if{down,up}
5 # Rewritten by Nathan Coulson <nathan@linuxfromscratch.org>
6 # Adapted for dhclient by DJ Lucas <dj@lucasit.com>
8 . /etc/sysconfig/rc
9 . $rc_functions
10 . $network_devices/ifconfig.$1
12 case "$2" in
13 up)
14 echo "Bringing up the $1 interface (dhclient)..."
15 /sbin/dhclient $1 $DHCP_START
16 evaluate_retval
19 down)
20 echo "Bringing down the $1 interface (dhclient)..."
21 /sbin/dhclient $1 $DHCP_STOP
22 evaluate_retval
26 echo "Usage: $0 [interface] {up|down}"
27 exit 1
29 esac
31 # End $network_devices/services/dhclient