Re: block till hotplug is done?

From: Jon Masters
Date: Tue Oct 05 2004 - 17:20:09 EST


On Tue, 05 Oct 2004 16:38:08 -0400, valdis.kletnieks@xxxxxx
<valdis.kletnieks@xxxxxx> wrote:
> On Tue, 05 Oct 2004 22:13:15 +0200, Harald Dunkel said:
> > Andreas Jellinghaus wrote:
> > > Hi,
> > >
> > > is there any way to block till all hotplug events are handled/
> > > the hotplug processes terminated?
> > >
> >
> > while [ "`ps | grep /sbin/hotplug | grep -v grep`" ]; do sleep 1; done
>
> Save a process:
>
> while [ "`ps | grep '/sbin/[h]otplug'`" ]; do sleep 1; done

Why not sit a script in /etc/dev.d and have that wake up your fsck
script by signalling a flag file somewhere or somesuch - I think this
is the preferable to do stuff with udev, Greg?

Jon.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/