On Fri, 15 Feb 2002, Chmouel Boudjnah wrote:

<Off topic>

There was a huge dalay after i install Cooker with DHCP/ftp and rebooted
to init 5 (GDM).
I think dhcp client does not updated /etc/hosts or something like this.
Can you check it?
</Off topic>

>
> Ok player try again, look like this is working :
>
> --- ifup.~1.29.~      Wed Feb 13 19:38:49 2002
> +++ ifup      Fri Feb 15 10:23:29 2002
> @@ -228,11 +228,12 @@
>      DHCP_ARGS="$DHCP_ARGS $DEVICE"
>      PIDF=/etc/dhcpc/dhcpcd-$DEVICE.pid
>      if [[ -f $PIDF ]];then
> -     if kill -0 `cat $PIDF`;then
> -         true; #running
> -     else
> -         /bin/rm -f $PIDF; #clear it
> +     PID=$(cat /etc/dhcpc/dhcpcd-$DEVICE.pid)
> +     if [[ -n $PID ]] && kill -0 $PID;then
> +         echo "dhpcd is running ifdown it before"
> +         exit;
>       fi
> +     /bin/rm -f $PIDF; #clear it
>      fi
>      ;;
>      pump)
>

-- 
 11:19pm  up 51 days, 10:30,  1 user,  load average: 0.00, 0.00, 0.00
  O                            //
 <==-}  ->           .--._.-^-(.}
  )'                /{       ( \d
 ./\,                 ) -._.- >
/  /                  `\    /' GNU  -=LFS*1482=-
    I am not 31337. But I can use the Vi editor... ;-0


Reply via email to