Commit Graph

14 Commits

Author SHA1 Message Date
Darko Poljak 53b91adbd8 Fix shellcheck 2020-09-11 14:20:57 +02:00
Dennis Camera b370b70ff4 [explorer/os] Fix OS detection for openSUSE
All distros with ID_LIKE suse should be treated as "suse".
My openSUSE Leap 15.1 installation has:
ID_LIKE="suse opensuse"

This patch doesn't require a strict "suse" value but only the word suse to be in
the list.
2020-08-02 22:50:06 +02:00
Daniel Heule 6a611e556a fix os explorer for sles15 2020-06-02 13:40:21 +02:00
Dennis Camera fba14496e7 [explorer/os] Unquote values from os-release file 2019-10-03 18:30:52 +02:00
kamila da8f6efafc fix explorer/os for devuan ascii (#588) 2017-10-20 18:16:06 +02:00
Philippe Grégoire 2b9bf3de24
replace grep+sed by awk 2017-08-19 18:19:17 -04:00
Philippe Grégoire e88e9c357f
fix formatting 2017-08-19 16:49:19 -04:00
Philippe Grégoire 69c6de9f9c
explorer/os: get ID from /etc/os-release
/etc/os-release was introduced by systemd[1] and is now
more and more common; even on systems without systemd (e.g. lede).
In addition to detecting the OS based on specific attributes,
this file provides the ID marker to describe the OS.

This commit adds support for OS detection via /etc/os-release.
According to [2], it is already lowercase.

[1] http://0pointer.de/blog/projects/os-release
[2] https://www.freedesktop.org/software/systemd/man/os-release.html
2017-08-19 16:41:50 -04:00
dmitrybogatov 1875bce52e Add support for guixsd into os explorer 2016-09-02 21:33:11 +02:00
Stephan Leemburg 9300eda3c6 Add scientific 2016-06-22 13:32:51 +02:00
smwltr 1882040a25 Adding suuport for OS Devuan 2016-04-12 12:18:47 +09:00
Stephan Leemburg 37fec8b3b5 Added Mitel as a redhat derived OS 2016-02-23 11:54:08 +01:00
Eivind Uggedal 1b25ef33b9 Slackware os and os_version explorer support. 2013-01-28 08:30:54 -05:00
Nico Schottelius 63573a9797 make package_data work
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-29 22:50:27 +01:00