[systemd-devel] [PATCH] Angstrom support

Harald Hoyer harald.hoyer at gmail.com
Thu May 5 09:17:22 PDT 2011


> diff --git a/src/util.c b/src/util.c
> index f0051ee..5af9161 100644
> --- a/src/util.c
> +++ b/src/util.c
> @@ -3426,6 +3426,18 @@ void status_welcome(void) {
>  
>         if (!ansi_color)
>                 const_color = "1;35"; /* Bright Magenta for MeeGo */
> +#elif defined(TARGET_ANGSTROM)
> +
> +        if (!pretty_name) {
> +                if ((r = read_one_line_file("/etc/angstrom-version", &pretty_name)) < 0) {
> +
> +                        if (r != -ENOENT)
> +                                log_warning("Failed to read /etc/angstrom-version: %s", strerror(-r));
> +                }
> +        }
> +
> +       if (!ansi_color)
> +               const_color = "1;35"; /* Bright Magenta for Angstrom */
>  #endif
>  
>          if (!pretty_name && !const_pretty)
> 
> 
> 


Hmm, wouldn't it make sense to symlink

"/etc/SuSE-release"
"/etc/gentoo-release"
"/etc/altlinux-release"
"/etc/debian_version"
"/etc/mandriva-release"
"/etc/meego-release"

to "/etc/system-release" or provide "/etc/lsb-release" ???

All those #ifdefs are taking overhand...


More information about the systemd-devel mailing list