All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH] Make initscripts banner stop trying to be smart
@ 2009-04-23 15:37 Tom Rini
  2009-04-23 17:28 ` Koen Kooi
  2009-04-25 21:01 ` Mike (mwester)
  0 siblings, 2 replies; 3+ messages in thread
From: Tom Rini @ 2009-04-23 15:37 UTC (permalink / raw)
  To: OpenEmbedded Devel List

I ran into this on my boards that start out with the really minimal
(console and null only) set of dev nodes prior to udev running.  The
banner script looks around for what might be the vtmaster (aka what's
got console) to say that we're booting.  But that's where things go by
default anyhow.  This would also let slugos use the normal version, if
they want.

Signed-off-by: Tom Rini <trini@embeddedalley.com>

diff --git a/recipes/initscripts/initscripts-1.0/banner b/recipes/initscripts/initscripts-1.0/banner
index 0349ce1..4e69c29 100644
--- a/recipes/initscripts/initscripts-1.0/banner
+++ b/recipes/initscripts/initscripts-1.0/banner
@@ -1,17 +1,3 @@
 #!/bin/sh
 
-if [ ! -e /dev/tty ]; then
-    /bin/mknod -m 0666 /dev/tty c 5 0
-fi
-
-if ( > /dev/tty0 ) 2>/dev/null; then
-    vtmaster=/dev/tty0
-elif ( > /dev/vc/0 ) 2>/dev/null; then
-    vtmaster=/dev/vc/0
-elif ( > /dev/console ) 2>/dev/null; then
-    vtmaster=/dev/console
-else
-    vtmaster=/dev/null
-fi
-echo > $vtmaster
-echo "Please wait: booting..." > $vtmaster
+echo "Please wait: booting..."
diff --git a/recipes/initscripts/initscripts_1.0.bb b/recipes/initscripts/initscripts_1.0.bb
index cbcfec5..6642144 100644
--- a/recipes/initscripts/initscripts_1.0.bb
+++ b/recipes/initscripts/initscripts_1.0.bb
@@ -4,7 +4,7 @@ PRIORITY = "required"
 DEPENDS = "makedevs"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r114"
+PR = "r115"
 
 SRC_URI = "file://functions \
            file://halt \

-- 
Tom Rini



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [RFC][PATCH] Make initscripts banner stop trying to be smart
  2009-04-23 15:37 [RFC][PATCH] Make initscripts banner stop trying to be smart Tom Rini
@ 2009-04-23 17:28 ` Koen Kooi
  2009-04-25 21:01 ` Mike (mwester)
  1 sibling, 0 replies; 3+ messages in thread
From: Koen Kooi @ 2009-04-23 17:28 UTC (permalink / raw)
  To: openembedded-devel

On 23-04-09 17:37, Tom Rini wrote:
> I ran into this on my boards that start out with the really minimal
> (console and null only) set of dev nodes prior to udev running.  The
> banner script looks around for what might be the vtmaster (aka what's
> got console) to say that we're booting.  But that's where things go by
> default anyhow.  This would also let slugos use the normal version, if
> they want.

I looked into the history of this file and it seems it stems from the 
creation of the OE project (when we still had .oe files) and the only 
edit to is is to add the check for /dev/console.

Anyway:

Acked-by: Koen Kooi <koen@openembedded.org>



> Signed-off-by: Tom Rini<trini@embeddedalley.com>
>
> diff --git a/recipes/initscripts/initscripts-1.0/banner b/recipes/initscripts/initscripts-1.0/banner
> index 0349ce1..4e69c29 100644
> --- a/recipes/initscripts/initscripts-1.0/banner
> +++ b/recipes/initscripts/initscripts-1.0/banner
> @@ -1,17 +1,3 @@
>   #!/bin/sh
>
> -if [ ! -e /dev/tty ]; then
> -    /bin/mknod -m 0666 /dev/tty c 5 0
> -fi
> -
> -if (>  /dev/tty0 ) 2>/dev/null; then
> -    vtmaster=/dev/tty0
> -elif (>  /dev/vc/0 ) 2>/dev/null; then
> -    vtmaster=/dev/vc/0
> -elif (>  /dev/console ) 2>/dev/null; then
> -    vtmaster=/dev/console
> -else
> -    vtmaster=/dev/null
> -fi
> -echo>  $vtmaster
> -echo "Please wait: booting...">  $vtmaster
> +echo "Please wait: booting..."
> diff --git a/recipes/initscripts/initscripts_1.0.bb b/recipes/initscripts/initscripts_1.0.bb
> index cbcfec5..6642144 100644
> --- a/recipes/initscripts/initscripts_1.0.bb
> +++ b/recipes/initscripts/initscripts_1.0.bb
> @@ -4,7 +4,7 @@ PRIORITY = "required"
>   DEPENDS = "makedevs"
>   RDEPENDS = "makedevs"
>   LICENSE = "GPL"
> -PR = "r114"
> +PR = "r115"
>
>   SRC_URI = "file://functions \
>              file://halt \
>





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC][PATCH] Make initscripts banner stop trying to be smart
  2009-04-23 15:37 [RFC][PATCH] Make initscripts banner stop trying to be smart Tom Rini
  2009-04-23 17:28 ` Koen Kooi
@ 2009-04-25 21:01 ` Mike (mwester)
  1 sibling, 0 replies; 3+ messages in thread
From: Mike (mwester) @ 2009-04-25 21:01 UTC (permalink / raw)
  To: openembedded-devel

Tom Rini wrote:
> I ran into this on my boards that start out with the really minimal
> (console and null only) set of dev nodes prior to udev running.  The
> banner script looks around for what might be the vtmaster (aka what's
> got console) to say that we're booting.  But that's where things go by
> default anyhow.  This would also let slugos use the normal version, if
> they want.
> 
> Signed-off-by: Tom Rini <trini@embeddedalley.com>

Acked-by: Mike Westerhof <mwester@dls.net>

Yes, SlugOS will happily return to using the normal version. :)


> diff --git a/recipes/initscripts/initscripts-1.0/banner b/recipes/initscripts/initscripts-1.0/banner
> index 0349ce1..4e69c29 100644
> --- a/recipes/initscripts/initscripts-1.0/banner
> +++ b/recipes/initscripts/initscripts-1.0/banner
> @@ -1,17 +1,3 @@
>  #!/bin/sh
>  
> -if [ ! -e /dev/tty ]; then
> -    /bin/mknod -m 0666 /dev/tty c 5 0
> -fi
> -
> -if ( > /dev/tty0 ) 2>/dev/null; then
> -    vtmaster=/dev/tty0
> -elif ( > /dev/vc/0 ) 2>/dev/null; then
> -    vtmaster=/dev/vc/0
> -elif ( > /dev/console ) 2>/dev/null; then
> -    vtmaster=/dev/console
> -else
> -    vtmaster=/dev/null
> -fi
> -echo > $vtmaster
> -echo "Please wait: booting..." > $vtmaster
> +echo "Please wait: booting..."
> diff --git a/recipes/initscripts/initscripts_1.0.bb b/recipes/initscripts/initscripts_1.0.bb
> index cbcfec5..6642144 100644
> --- a/recipes/initscripts/initscripts_1.0.bb
> +++ b/recipes/initscripts/initscripts_1.0.bb
> @@ -4,7 +4,7 @@ PRIORITY = "required"
>  DEPENDS = "makedevs"
>  RDEPENDS = "makedevs"
>  LICENSE = "GPL"
> -PR = "r114"
> +PR = "r115"
>  
>  SRC_URI = "file://functions \
>             file://halt \
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-25 21:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-23 15:37 [RFC][PATCH] Make initscripts banner stop trying to be smart Tom Rini
2009-04-23 17:28 ` Koen Kooi
2009-04-25 21:01 ` Mike (mwester)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.