Re: mars has strange behaviour -- how to package?
Ben Pfaff <pfaffben@pilot.msu.edu> wrote:
> echo -n "Waiting for DHCP to come up... "
> count=60
> while ! test -e /tmp/dhcp-up && test $count != 0; do
> sleep 1
> count=`expr $count - 1`
> done
> if test -e /tmp/dhcp-up; then
> echo "done."
> else
> echo "failed."
I dunno about dhcp coming up, but when waiting for something to
go away, it's better to wait on the pid.
Something like:
while kill -0 $pid; do sleep 1; done
--
Raul
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: