[arch-dev-public] [PATCH] initscripts: Add a splash support

Damir Perisa damir.perisa at solnet.ch
Sun Nov 4 13:12:32 EST 2007

Sunday 04 November 2007, Thomas Bächler wrote:
 | I added a splash branch to initscripts and applied the patch. We
 | can merge that once the patch is finalized:
 | http://projects.archlinux.org/git/?p=initscripts.git;a=shortlog;h=


+if [ -n "${SPLASH}" -a -x "/sbin/${SPLASH}_wrapper" ]; then
+       source /etc/$SPLASH.conf
+       source /etc/rc.d/$SPLASH-functions
+       splash_wrapper() {
+                /sbin/${SPLASH}_wrapper $@
+       }
+       splash_wrapper() {
+               :
+       }

and then using it in 

 stat_fail()  stat_done() ...

actually would break a lot of my private scripts when enabled splash, 
because i am using stat_XX() functions from functions of arch that i 
use in xterm. 

what would happen if you would use the splash_wrapper on a 
not-framebuffer capable device? i do not know what is actually 
the /sbin/${SPLASH}_wrapper doing, but will it fall back to the 
splash_wrapper() {
behaviour if it detects that it cannot use any framebuffer device?

this is of course a detail and i'm not mentioning it because i use 
this functions but in general. is there an option on what happens 
when "/sbin/${SPLASH}_wrapper $@" fails? 

maybe something like: "/sbin/${SPLASH}_wrapper $@ || echo 'splash 
failed - status: $@'"  
(this is a wild guess - no idea if it may work; i'm not familiar with 
all the code, just had a look at some diffs)

by the way: thanx for the branch. more convincing if oyu can browse 
git and have a look in a unproblematic way :)

- D

            °        °           °
             °      °            °
     ><((((º>      °              °
                    °            °
                   °            <º)))><

More information about the arch-dev-public mailing list