diff options
author | Roy Marples <roy@marples.name> | 2008-01-29 10:03:45 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-29 10:03:45 +0000 |
commit | d8240a1aea33d2c5956cf460f5674aadd9da62e6 (patch) | |
tree | 7a2369742c8ec793c0ad62160dca58cc1817d045 /src/rc/rc.c | |
parent | 9ce3086bf5658caf4f1d97ed489e2f96ff7b6282 (diff) |
If we don't have any branding, then add some uname info at startup.
Diffstat (limited to 'src/rc/rc.c')
-rw-r--r-- | src/rc/rc.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c index 790362f5..293cc8c9 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -687,8 +687,9 @@ int main (int argc, char **argv) (strcmp (RUNLEVEL, "S") == 0 || strcmp (RUNLEVEL, "1") == 0)) { - /* OK, we're either in runlevel 1 or single user mode */ + struct utsname uts; + /* OK, we're either in runlevel 1 or single user mode */ #ifdef __linux__ char *cmd; #endif @@ -700,15 +701,18 @@ int main (int argc, char **argv) run_script (INITEARLYSH); 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_NORMAL), ecolor (ECOLOR_BRACKET), + ecolor (ECOLOR_NORMAL), ecolor (ECOLOR_BRACKET)); #ifdef BRANDING - BRANDING + printf (BRANDING " (%s)", uts.arch); #else - "" -#endif - , ecolor (ECOLOR_NORMAL)); + printf ("%s %s (%s)", + uts.sysname, + uts.release, + uts.machine); +#endif + printf ("%s\n\n", ecolor (ECOLOR_NORMAL)); if (! rc_yesno (getenv ("EINFO_QUIET")) && rc_conf_yesno ("rc_interactive")) |