return &$parse_os_release($data);
}
-# Checks whether /sbin/init is a symlink, and if it is,
-# resolves it to the actual binary
-sub get_ct_init_path {
+# Checks whether /sbin/init is a symlink, and if it is, resolves it to the actual binary
+sub get_ct_init_path {
my ($self) = @_;
my $init = $self->protected_call(sub {
my $init_path = "/sbin/init";
- if($self->{plugin}->ct_is_symlink($init_path)) {
- $init_path = $self->{plugin}->ct_readlink($init_path);
+ if ($self->{plugin}->ct_is_symlink($init_path)) {
+ $init_path = $self->{plugin}->ct_readlink($init_path);
}
return $init_path;
});