mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-23 13:55:43 +02:00
2012-04-25 Sergio Martin <sergio.martin@artica.es>
* unix/plugins/inventory: Fixed method of obtain runlevel to be valid on OpenSuse Merged from 4.0.x git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6167 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
acfa343a1c
commit
05fd6988a6
@ -1,3 +1,9 @@
|
|||||||
|
2012-04-25 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* unix/plugins/inventory: Fixed method of obtain
|
||||||
|
runlevel to be valid on OpenSuse
|
||||||
|
Merged from 4.0.x
|
||||||
|
|
||||||
2012-04-25 Sergio Martin <sergio.martin@artica.es>
|
2012-04-25 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* win32/bin/pandora_agent.conf
|
* win32/bin/pandora_agent.conf
|
||||||
|
@ -81,7 +81,7 @@ sub get_file_system($$) {
|
|||||||
# Get a list of services init in machine
|
# Get a list of services init in machine
|
||||||
sub get_servicies_init_machine($$) {
|
sub get_servicies_init_machine($$) {
|
||||||
my ($name, $modules) = @_;
|
my ($name, $modules) = @_;
|
||||||
my $runlevel = `runlevel | cut -d' ' -f2`;
|
my $runlevel = `who -r | awk '{print \$2}'`;
|
||||||
|
|
||||||
#ini trim($runlevel)
|
#ini trim($runlevel)
|
||||||
$runlevel =~ s/^\s*//; #ltrim
|
$runlevel =~ s/^\s*//; #ltrim
|
||||||
|
Loading…
x
Reference in New Issue
Block a user