Just in case I put in something wrong I tried the new
ifup today but still no go. The script looks good as
far as I can tell but it still does not work properly.
Here is what I get:
[root@sidell sbin]# service pcmcia restart
Shutting down PCMCIA services: cardmgr modules.
Starting PCMCIA services: cardmgr.
[root@sidell sbin]# ifup eth0
dhpcd is running ifdown it before
[root@sidell sbin]# d /etc/dhcpc
dhcpcd-eth0.cache dhcpcd-eth0.info.old dhcpcd.exe*
dhcpcd-eth0.info dhcpcd-eth0.pid
As you can see, despite the fact the script looks like
it should remove the pid, it still does not.
However when I removed line 234
exit;
It worked properly.
> --- Chmouel Boudjnah <[EMAIL PROTECTED]>
> wrote:
> >
> > 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)
> >
>
>
> =====
> SI Reasoning
> [EMAIL PROTECTED]
>
> "To announce that there must be no criticism of the
> president or that we are to stand by the president,
> right or wrong, is not only unpatriotic and servile,
> but is morally treasonable to the American public."
> Theodore Roosevelt
>
> __________________________________________________
> Do You Yahoo!?
> Got something to say? Say it better with Yahoo!
> Video Mail
> http://mail.yahoo.com
>
=====
SI Reasoning
[EMAIL PROTECTED]
"To announce that there must be no criticism of the president or that we are to stand
by the president, right or wrong, is not only unpatriotic and servile, but is morally
treasonable to the American public."
Theodore Roosevelt
__________________________________________________
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail
http://mail.yahoo.com