File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -403,6 +403,16 @@ static int is_wrlinux(void)
403
403
return parse_os_release ("cpe:/o:windriver:wrlinux" );
404
404
}
405
405
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
+
406
416
static int is_common (void )
407
417
{
408
418
return (1 );
@@ -424,7 +434,9 @@ const distro_tbl_t distro_tbl[] = {
424
434
{ & is_suse , & get_runlevel_suse },
425
435
{ & is_solaris , & get_runlevel_redhat },
426
436
{ & 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 }
428
440
};
429
441
430
442
#define DISTRO_TBL_SIZE ((sizeof distro_tbl)/sizeof (distro_tbl_t))
You can’t perform that action at this time.
0 commit comments