20101130-alt3
- add nosplash command for disable plymouth
This commit is contained in:
parent
cc71950045
commit
1e8818d6ff
@ -3,7 +3,7 @@
|
||||
|
||||
Name: propagator
|
||||
Version: 20101130
|
||||
Release: alt2
|
||||
Release: alt3
|
||||
|
||||
Summary: 'Early userspace' set of binaries
|
||||
License: GPL
|
||||
@ -40,6 +40,9 @@ make %{?_with_shell:WITH_SHELL=t} %{?_with_splash:WITH_SPLASH=t} libdir=%_libdir
|
||||
%_libdir/%name
|
||||
|
||||
%changelog
|
||||
* Wed Dec 01 2010 Anton Farygin <rider@altlinux.ru> 20101130-alt3
|
||||
- add nosplash command for disable plymouth
|
||||
|
||||
* Wed Dec 01 2010 Anton V. Boyarshinov <boyarsh@altlinux.ru> 20101130-alt2
|
||||
- spawning plymouth fixed
|
||||
|
||||
|
4
stage1.c
4
stage1.c
@ -154,6 +154,7 @@ static void spawn_shell(void)
|
||||
static void spawn_splash(void)
|
||||
{
|
||||
#ifdef SPAWN_SPLASH
|
||||
if (IS_NOPLYMOUTH) return;
|
||||
char * splash_name[] = { "/sbin/plymouthd", "plymouthd", NULL };
|
||||
|
||||
log_message("spawning a splash screen");
|
||||
@ -161,7 +162,8 @@ static void spawn_splash(void)
|
||||
|
||||
char * av[] = { "/bin/plymouth", "plymouth", "show-splash", NULL };
|
||||
log_message( "%s: %s\n", av[0], av[2] );
|
||||
return spawn(av);
|
||||
spawn(av);
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
2
stage1.h
2
stage1.h
@ -42,6 +42,7 @@ extern char * interactive_fifo;
|
||||
#define MODE_RAMDISK (1 << 9)
|
||||
#define MODE_CHANGEDISK (1 << 10)
|
||||
#define MODE_UPDATEMODULES (1 << 11)
|
||||
#define MODE_NOPLYMOUTH (1 << 12)
|
||||
|
||||
#define IS_TESTING (get_param(MODE_TESTING))
|
||||
#define IS_EXPERT (get_param(MODE_EXPERT))
|
||||
@ -54,6 +55,7 @@ extern char * interactive_fifo;
|
||||
#define IS_RAMDISK (get_param(MODE_RAMDISK))
|
||||
#define IS_CHANGEDISK (get_param(MODE_CHANGEDISK))
|
||||
#define IS_UPDATEMODULES (get_param(MODE_UPDATEMODULES))
|
||||
#define IS_NOPLYMOUTH (get_param(MODE_NOPLYMOUTH))
|
||||
|
||||
void fatal_error(char *msg) __attribute__ ((noreturn));
|
||||
|
||||
|
9
tools.c
9
tools.c
@ -92,6 +92,7 @@ void process_cmdline(void)
|
||||
if (!strcmp(name, "changedisk")) set_param(MODE_CHANGEDISK);
|
||||
if (!strcmp(name, "updatemodules")) set_param(MODE_UPDATEMODULES);
|
||||
if (!strcmp(name, "rescue")) set_param(MODE_RESCUE);
|
||||
if (!strcmp(name, "nosplash")) set_param(MODE_NOPLYMOUTH);
|
||||
if (!strcmp(name, "live")) set_param(MODE_LIVE);
|
||||
if (!strcmp(name, "stagename")) set_param(MODE_STAGENAME);
|
||||
if (!strcmp(name, "lowmem")) set_param(MODE_LOWMEM);
|
||||
@ -315,16 +316,24 @@ enum return_type load_ramdisk_fd(int source_fd, int size)
|
||||
|
||||
int splash_verbose()
|
||||
{
|
||||
#ifdef SPAWN_SPLASH
|
||||
if (IS_NOPLYMOUTH)
|
||||
return(1);
|
||||
char * av[] = { "/bin/plymouth" , "plymouth" , "hide-splash", NULL };
|
||||
log_message( "%s: %s\n", av[0], av[2] );
|
||||
return spawn(av);
|
||||
#endif
|
||||
}
|
||||
|
||||
int update_splash( char * state )
|
||||
{
|
||||
#ifdef SPAWN_SPLASH
|
||||
if (IS_NOPLYMOUTH)
|
||||
return(1);
|
||||
char * av[] = { "/bin/plymouth" , "plymouth" , "--update" , state, NULL };
|
||||
log_message( "%s: %s\n", av[0], av[3] );
|
||||
return spawn(av);
|
||||
#endif
|
||||
}
|
||||
|
||||
char * get_ramdisk_realname(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user