2 # Begin $network-devices/services/dhcpcd
4 # Based upon lfs-bootscripts-1.12 $network_devices/if{down,up}
5 # Rewritten by Nathan Coulson <nathan@linuxfromscratch.org>
6 # Adapted for dhcpcd by DJ Lucas <dj@lucasit.com>
10 .
$network_devices/ifconfig.
$1
14 echo "Bringing up the $1 interface (dhcpcd)..."
15 # Test to see if there is a stale pid file
16 if [ -f /var
/run
/dhcpcd-
$1.pid
]
18 ps $
(cat /var
/run
/dhcpcd-
$1.pid
) |
grep dhcpcd
> /dev
/null
21 rm -f /var
/run
/dhcpcd-
$1.pid
> /dev
/null
23 print_status warning running
27 /sbin
/dhcpcd
$1 $DHCP_START
32 echo "Bringing down the $1 interface (dhcpcd)..."
33 /sbin
/dhcpcd
$1 $DHCP_STOP
38 echo "Usage: $0 [interface] {up|down}"
43 # End $network_devices/services/dhcpcd