If we don't have any branding, then add some uname info at startup.
This commit is contained in:
parent
9ce3086bf5
commit
d8240a1aea
16
src/rc/rc.c
16
src/rc/rc.c
@ -687,8 +687,9 @@ int main (int argc, char **argv)
|
|||||||
(strcmp (RUNLEVEL, "S") == 0 ||
|
(strcmp (RUNLEVEL, "S") == 0 ||
|
||||||
strcmp (RUNLEVEL, "1") == 0))
|
strcmp (RUNLEVEL, "1") == 0))
|
||||||
{
|
{
|
||||||
/* OK, we're either in runlevel 1 or single user mode */
|
|
||||||
struct utsname uts;
|
struct utsname uts;
|
||||||
|
/* OK, we're either in runlevel 1 or single user mode */
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
char *cmd;
|
char *cmd;
|
||||||
#endif
|
#endif
|
||||||
@ -700,15 +701,18 @@ int main (int argc, char **argv)
|
|||||||
run_script (INITEARLYSH);
|
run_script (INITEARLYSH);
|
||||||
|
|
||||||
uname (&uts);
|
uname (&uts);
|
||||||
printf ("\n %sOpenRC %s" VERSION "%s is starting up %s%s%s\n\n",
|
printf ("\n %sOpenRC %s" VERSION "%s is starting up %s",
|
||||||
ecolor (ECOLOR_GOOD), ecolor (ECOLOR_HILITE),
|
ecolor (ECOLOR_GOOD), ecolor (ECOLOR_HILITE),
|
||||||
ecolor (ECOLOR_NORMAL), ecolor (ECOLOR_BRACKET),
|
ecolor (ECOLOR_NORMAL), ecolor (ECOLOR_BRACKET));
|
||||||
#ifdef BRANDING
|
#ifdef BRANDING
|
||||||
BRANDING
|
printf (BRANDING " (%s)", uts.arch);
|
||||||
#else
|
#else
|
||||||
""
|
printf ("%s %s (%s)",
|
||||||
|
uts.sysname,
|
||||||
|
uts.release,
|
||||||
|
uts.machine);
|
||||||
#endif
|
#endif
|
||||||
, ecolor (ECOLOR_NORMAL));
|
printf ("%s\n\n", ecolor (ECOLOR_NORMAL));
|
||||||
|
|
||||||
if (! rc_yesno (getenv ("EINFO_QUIET")) &&
|
if (! rc_yesno (getenv ("EINFO_QUIET")) &&
|
||||||
rc_conf_yesno ("rc_interactive"))
|
rc_conf_yesno ("rc_interactive"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user