Skip to content

Commit c99fc85

Browse files
authored
Merge pull request #1986 from akuster/maint-1.3
Adding OpenEmbedded and Poky Distros
2 parents 08e1110 + a669024 commit c99fc85

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/OVAL/probes/unix/runlevel_probe.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,16 @@ static int is_wrlinux(void)
403403
return parse_os_release("cpe:/o:windriver:wrlinux");
404404
}
405405

406+
static int is_openembedded(void)
407+
{
408+
return parse_os_release("cpe:/o:openembedded:nodistro");
409+
}
410+
411+
static int is_poky(void)
412+
{
413+
return parse_os_release("cpe:/o:openembedded:poky");
414+
}
415+
406416
static int is_common (void)
407417
{
408418
return (1);
@@ -424,7 +434,9 @@ const distro_tbl_t distro_tbl[] = {
424434
{ &is_suse, &get_runlevel_suse },
425435
{ &is_solaris, &get_runlevel_redhat },
426436
{ &is_wrlinux, &get_runlevel_wrlinux },
427-
{ &is_common, &get_runlevel_common }
437+
{ &is_common, &get_runlevel_common },
438+
{ &is_openembedded, &get_runlevel_common },
439+
{ &is_poky, &get_runlevel_common }
428440
};
429441

430442
#define DISTRO_TBL_SIZE ((sizeof distro_tbl)/sizeof (distro_tbl_t))

0 commit comments

Comments
 (0)