From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Conradi Date: Sat, 05 Mar 2005 22:15:11 +0000 Subject: Re: udev boot delay Message-Id: <1c687cba05030514156ac55a1d@mail.gmail.com> List-Id: References: <20050304084732.GA4203@branci40> In-Reply-To: <20050304084732.GA4203@branci40> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, 4 Mar 2005 17:14:11 +0100, Marco d'Itri wrote: > On Mar 04, Olaf Conradi wrote: > > > Hopefully minit and other init systems set them as well. > Hope is not enough, this is why I chose the other approach. Heh, it can still be used as an additional check. Just use it if it's available, otherwise fall back on the current check. How about this: warn_if_interactive() { if [ "$RUNLEVEL" = "S" -a "$PREVLEVEL" = "N" ]; then return fi TTY=$(my_tty) if [ -z "$TTY" -o "$TTY" = "/dev/console" ]; then return fi printf "Warning..blabla\n" sleep 60 } Cheers, -Olaf ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel