Skip to content

Commit a669024

Browse files
committed
openembedded: add Poky distro
Signed-off-by: Armin Kuster <[email protected]>
1 parent 61ebe62 commit a669024

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/OVAL/probes/unix/runlevel_probe.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,11 @@ static int is_openembedded(void)
408408
return parse_os_release("cpe:/o:openembedded:nodistro");
409409
}
410410

411+
static int is_poky(void)
412+
{
413+
return parse_os_release("cpe:/o:openembedded:poky");
414+
}
415+
411416
static int is_common (void)
412417
{
413418
return (1);
@@ -430,7 +435,8 @@ const distro_tbl_t distro_tbl[] = {
430435
{ &is_solaris, &get_runlevel_redhat },
431436
{ &is_wrlinux, &get_runlevel_wrlinux },
432437
{ &is_common, &get_runlevel_common },
433-
{ &is_openembedded, &get_runlevel_common }
438+
{ &is_openembedded, &get_runlevel_common },
439+
{ &is_poky, &get_runlevel_common }
434440
};
435441

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

0 commit comments

Comments
 (0)