Darko Poljak
83806e767a
Disable SC1091 where appropriate.
6 years ago
Darko Poljak
c01cf38660
Fix SC2164
6 years ago
Jonas Weber
a6fdf4255a
Fix SC2069 (wrong stdout/stderr redirect order)
...
In the original order, stderr was connected to the old stdout
(terminal). This was _probably_ not intended. The new order fixes this
by first connecting stdout to /dev/null and then attaching stderr to
that as well.
6 years ago
Jonas Weber
ae7ccc5995
Fix SC2086 on all scripts
...
Relevant documentation: https://github.com/koalaman/shellcheck/wiki/SC2086
relates to: #540
This commit addresses 241 separate cases of missing quotes around
variables.
6 years ago
Thomas Eckert
085b2a2b10
remove `set -e` on explorers (they should be able to fail gracefully)
6 years ago
Thomas Eckert
a46da35bbc
fix SC2148 (missing shebang) and make executable
6 years ago
Thomas Eckert
134c84607f
fix another SC2166 (test `[ .. -a.. ]` replaced by `[ .. ] && ]`)
6 years ago
Darko Poljak
44acfcdd12
Fix SC2002
6 years ago
Darko Poljak
5ed95ce93b
Fix SC2005
6 years ago
Adam Dej
c2f8c7abb3
Add explorer for info in /etc/os-release
6 years ago
Kamila Součková
b695e82bec
FreeBSD improvements ( #651 )
7 years ago
uqam-fob
3b6a471119
explorer/memory: Support OpenBSD ( #602 )
...
Adds support to detect the amount of memory available on OpenBSD
systems.
7 years ago
Kamila Součková
da8f6efafc
fix explorer/os for devuan ascii ( #588 )
7 years ago
Sven Wick
ed55d01b35
Update machine_type ( #564 )
...
detect kvm on proxmox
7 years ago
Philippe Grégoire
ebe0c0d66d
make sure we continue on errors
8 years ago
Philippe Grégoire
5646a66f6c
explorer/init/Linux: replace ps by pgrep
...
BusyBox's version of ps does not support the -o option.
On Linux systems, use pgrep -P0 -l to get the name of
pid 1.
8 years ago
Philippe Grégoire
2b9bf3de24
replace grep+sed by awk
8 years ago
Philippe Grégoire
e88e9c357f
fix formatting
8 years ago
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
8 years ago
Kamila Souckova
21a29ab5aa
add __go_get, __golang_from_vendor
8 years ago
Daniel Heule
bee5593570
use /etc/os-release instead of /etc/SuSE-release
8 years ago
Dmitry Bogatov
1875bce52e
Add support for guixsd into os explorer
8 years ago
Stu Zhao
a6643f0d7f
Explore machine type for virtualbox guest
9 years ago
Stephan Leemburg
9300eda3c6
Add scientific
9 years ago
Stephan Leemburg
98160624a0
Add openvz/lxc discovery
9 years ago
Stephan Leemburg
9802467bbb
Add openvz/lxc discovery
9 years ago
Darko Poljak
b40034a54a
Remove unnecessary global explorer.
9 years ago
Darko Poljak
b7da9d1ef5
Remove unnecessary global explorer.
9 years ago
Darko Poljak
5e0975a304
Remove unnecessary global explorer.
9 years ago
Darko Poljak
f24d264480
Updated usage comment.
9 years ago
Darko Poljak
5c33d22925
Prefer su over sudo.
9 years ago
Darko Poljak
cd78d4140a
Add global explorers su, sudo and sucmd.
9 years ago
smwltr
1882040a25
Adding suuport for OS Devuan
9 years ago
Daniel Heule
f7de217129
modified the unknown case to empty...
9 years ago
Daniel Heule
9c6d7dbd89
modified the unknown case ...
9 years ago
Daniel Heule
2c49e04c98
Updated the exlorer for more systems
...
changed the ps syntax, so it should work on freebsd to
added a case so it could easy implemented for other os to
9 years ago
Daniel Heule
14f3ee403a
fix fo __start_on_boot for ALL systemd distros
9 years ago
Stephan Leemburg
b03a4f2829
Added Mitel as a redhat derived OS
9 years ago
Stephan Leemburg
37fec8b3b5
Added Mitel as a redhat derived OS
9 years ago
Manuel Hutter
981f8068d2
code diet on "memory"
11 years ago
Manuel Hutter
e727824964
`cat` and pipe diet
11 years ago
Manuel Hutter
c36fba4b99
Fixed global explorers on OSX
11 years ago
Daniel Heule
3710557c62
bugfix the list of interfaces
11 years ago
Daniel Heule
7b6102750e
as requested, replace space with _
11 years ago
Daniel Heule
e8f5d4c340
some new explorers wich are handy if you must tune for example sap or
...
oracle to the systemtype, cpu cores and/or physical memory
11 years ago
Nico Schottelius
8d5357107b
use uname -n in hostname explorer
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
cd6abf379a
allow hostname -f to fail and return empty output
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
e463f84333
add changelog for 4.x cdist series
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Arkaitz Jimenez
4a89e64115
Make global explorers available to initial manifest and fix hostname explorer
12 years ago
Eivind Uggedal
1b25ef33b9
Slackware os and os_version explorer support.
12 years ago