On Arch systems, /etc/lsb-release contains the placeholder version string
"rolling".
Prevent parsing /etc/lsb-release on Arch systems to the script won't report the
distribution "Arch rolling".
Replaced the crude parsing of /etc/SuSE-release (which is due to be removed in
future OpenSUSE versions) with equally crude parsing of /etc/os-release.
/etc/os-release is present on several different distributions and usually
contains the same information as /etc/lsb-release when both files are
available.
For now, parsing /etc/lsb-release takes precedence and /etc/os-release is only
used as a fallback when the former is not available.
scripts/distro currently sends the version string "Arch rolling" for Arch Linux
systems (assuming they have the lsb-release package installed), so LibreNMS
will try to use the icon file arch.png by default.
(As of this commit, the logo is not yet used in the LibreNMS web UI.)
Adapted from https://sources.archlinux.org/other/artwork/archlinux-logo-dark-scalable.svg.
According to an email by Aaron Griffin, use of the logo in LibreNMS is
permitted as long as no commercial interests are pursued and the TM symbol is
included in the logo:
On 22.09.2015 18:17, Nils Steinger wrote:
> To Whom It May Concern:
>
> I'm a new user of the LibreNMS network monitoring system (an Open Source
> fork of Observium) [1].
> LibreNMS has inherited a number of logos from Observium that are
> displayed in the list of monitored hosts to show what *nix/Linux
> distribution they are running.
>
> Would it be possible to add a 32×32 or 48×48 px version of the Arch
> Linux logo (like the one attached to this email) to LibreNMS?
>
> LibreNMS has no commercial interests, but I'm not sure whether the Arch
> Linux Trademark Policy allows creating derivatives of the logo and
> including them in software distributions, hence this inquiry.
>
> Best Regards,
> Nils Steinger
>
>
> [1]: https://github.com/librenms/librenms
On 22.09.2015 19:54, Aaron Griffin wrote:
> This is an acceptable use of the logo - the only thing we ask is that you
> maintain the TM symbol on the logo.