Changeset 1d02f01 in bootscripts-standard for cblfs/sysconfig


Ignore:
Timestamp:
Oct 23, 2007, 1:07:58 AM (17 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
1680407
Parents:
d8a3177
Message:

Merged Updates from BLFS/LFS SVNs

Location:
cblfs/sysconfig/network-devices/services
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cblfs/sysconfig/network-devices/services/dhclient

    rd8a3177 r1d02f01  
    1616{
    1717        # Print the last 16 lines of dhclient.leases
    18         sed -e :a -e '$q;N;17,$D;ba' /var/state/dhcp//dhclient.leases
     18        sed -e :a -e '$q;N;17,$D;ba' /var/state/dhcp/dhclient.leases
    1919}
    2020
     
    6767        down)
    6868                boot_mesg "Stoping dhclient on the $1 interface..."
    69                 if [ "$DHCP_STOP" = "" ]
    70                 then
     69                if [ "$DHCP_STOP" = "" ]; then
    7170                        # This breaks multiple interfaces please provide
    7271                        # the correct stop arguments.
  • cblfs/sysconfig/network-devices/services/dhcpcd

    rd8a3177 r1d02f01  
    66# Adapted for dhcpcd by DJ Lucas <dj@lucasit.com>
    77
    8 #$LastChangedBy: dj $
    9 #$Date: 2007-08-21 23:09:21 -0500 (Tue, 21 Aug 2007) $
     8#$LastChangedBy$
     9#$Date$
    1010
    1111. /etc/sysconfig/rc
     
    1313. $IFCONFIG
    1414
    15 PIDFILE="/var/run/dhcpcd-$1.pid"
    16 LEASEINFO="/var/lib/dhcpcd/dhcpcd-$1.info"
     15pidfile="/var/run/dhcpcd-$1.pid"
     16leaseinfo="/var/lib/dhcpcd/dhcpcd-$1.info"
    1717
    1818case "$2" in
     
    2020                boot_mesg -n "Starting dhcpcd on the $1 interface..."
    2121                # Test to see if there is a stale pid file
    22                 if [ -f "$PIDFILE" ]
    23                 then
    24                         ps `cat "$PIDFILE"` | grep dhcpcd > /dev/null
    25                         if [ $? != 0 ]
    26                         then
    27                                 rm -f $PIDFILE > /dev/null
     22                if [ -f "$pidfile" ]; then
     23                        ps `cat "$pidfile"` | grep dhcpcd > /dev/null
     24                        if [ $? != 0 ]; then
     25                                rm -f $pidfile > /dev/null
    2826                        else
    2927                                boot_mesg "dhcpcd already running!" ${WARNING}
     
    3735                # Print the assigned settings if requested
    3836                if [ "$RET" = "0" -a "$PRINTIP" = "yes" ]; then
    39                         . $LEASEINFO
     37                        . $leaseinfo
    4038                        if [ "$PRINTALL" = "yes" ]; then
    4139                                echo ""
     
    6462        down)
    6563                boot_mesg -n "Stopping dhcpcd on the $1 interface..."
    66                 if [ -z "$DHCP_STOP" ]
    67                 then
     64                if [ -z "$DHCP_STOP" ]; then
    6865                        echo ""
    69                         killproc -p "$PIDFILE" /sbin/dhcpcd
     66                        killproc -p "$pidfile" /sbin/dhcpcd
    7067                else
    7168                        /sbin/dhcpcd $1 $DHCP_STOP &> /dev/null
     
    9188
    9289# End $network_devices/services/dhcpcd
     90
Note: See TracChangeset for help on using the changeset viewer.