Changeset ad29fe9 in bootscripts-standard


Ignore:
Timestamp:
Feb 3, 2009, 12:23:22 PM (15 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
04bc108
Parents:
a3d8ed8
Message:

DHCPCD Update

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Changelog

    ra3d8ed8 rad29fe9  
     1jim - February 3, 2009
     2        * Updated DHCPCD service.
     3
    14jim - February 2, 2009
    25        * Fixed Makefile
  • cblfs/sysconfig/network-devices/services/dhcpcd

    ra3d8ed8 rad29fe9  
    66# Adapted for dhcpcd by DJ Lucas <dj@lucasit.com>
    77
    8 #$LastChangedBy$
    9 #$Date$
    10 
    118. /etc/sysconfig/rc
    129. $rc_functions
     
    1411
    1512pidfile="/var/run/dhcpcd-$1.pid"
    16 leaseinfo="/var/lib/dhcpcd/dhcpcd-$1.info"
    1713
    1814case "$2" in
    1915        up)
    20                 boot_mesg -n "Starting dhcpcd on the $1 interface..."
     16                boot_mesg -n "Starting DHCPCD on the $1 interface..."
    2117                # Test to see if there is a stale pid file
    2218                if [ -f "$pidfile" ]; then
     
    3329                # Save the return value
    3430                RET="$?"
    35                 # Print the assigned settings if requested
    36                 if [ "$RET" = "0" -a "$PRINTIP" = "yes" ]; then
    37                         . $leaseinfo
    38                         if [ "$PRINTALL" = "yes" ]; then
    39                                 echo ""
    40                                 echo_ok
    41                                 boot_mesg "           DHCP Assigned Settings for $1:"
    42                                 boot_mesg_flush
    43                                 boot_mesg "           IP Address:      $IPADDR"
    44                                 boot_mesg_flush
    45                                 boot_mesg "           Subnet Mask:     $NETMASK"
    46                                 boot_mesg_flush
    47                                 boot_mesg "           Default Gateway: $GATEWAYS"
    48                                 boot_mesg_flush
    49                                 boot_mesg "           DNS Server:      $DNSSERVERS"
    50                                 boot_mesg_flush
    51                         else
    52                                 boot_mesg " IP Addresss: $IPADDR"
    53                                 echo_ok
    54                         fi
    55                 else
    56                         echo ""
    57                         $(exit "$RET")
    58                         evaluate_retval
    59                 fi
     31                echo ""
     32                $(exit "$RET")
     33                evaluate_retval
    6034        ;;
    6135
    6236        down)
    63                 boot_mesg -n "Stopping dhcpcd on the $1 interface..."
     37                boot_mesg -n "Stopping DHCPCD on the $1 interface..."
    6438                if [ -z "$DHCP_STOP" ]; then
    6539                        echo ""
     
    8862
    8963# End $network_devices/services/dhcpcd
    90 
Note: See TracChangeset for help on using the changeset viewer.