Re: udev boot delay
On Fri, 4 Mar 2005 17:14:11 +0100, Marco d'Itri <md@linux.it> wrote:
> On Mar 04, Olaf Conradi <oohlaf@gmail.com> 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
Reply to: