diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-02-21 18:49:41 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-02-22 02:50:50 +0000 |
commit | 5aaf741c812bc6f21b6014c7b549089bfd20920f (patch) | |
tree | 28cf2b64fe0ab21672695df55a2e3c1a10e9bfb5 | |
parent | 0161a5ba52db4e499e471d6482dc923b495b9989 (diff) |
And systemd weighs in on how to find out the distribution you're on....
Change-Id: I84e957617b81b6cfad815dc84439e166c0f936b6
Reviewed-on: https://code.wireshark.org/review/25980
Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r-- | wsutil/os_version_info.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/wsutil/os_version_info.c b/wsutil/os_version_info.c index 2bfb264d62..44c00397f8 100644 --- a/wsutil/os_version_info.c +++ b/wsutil/os_version_info.c @@ -489,6 +489,21 @@ get_os_version_info(GString *str) * * and the Lib/Platform.py file in recent Python 2.x * releases. + * + * And then there's + * + * http://0pointer.de/blog/projects/os-release + * + * which, apparently, is something that all distributions + * with systemd have, which seems to mean "most distributions" + * these days. It also has a list of several of the assorted + * *other* such files that various distributions have. + * + * Maybe look at what pre-version-43 systemd does? 43 + * removed support for the old files, but I guess that + * means older versions *did* support them: + * + * https://lists.freedesktop.org/archives/systemd-devel/2012-February/004475.html */ g_string_append_printf(str, "%s %s", name.sysname, name.release); #endif /* HAVE_MACOS_FRAMEWORKS */ |