mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
libcoolstream: Add boxarch to hw_caps
Origin commit data
------------------
Branch: ni/coolstream
Commit: 514d6344a6
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-25 (Mon, 25 Jan 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <global.h>
|
||||
#include <zapit/femanager.h>
|
||||
#include <sys/utsname.h>
|
||||
#include "hardware_caps.h"
|
||||
|
||||
static int initialized = 0;
|
||||
@@ -22,6 +23,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
if (initialized && frontend_check)
|
||||
return ∩︀
|
||||
|
||||
struct utsname u;
|
||||
unsigned int system_rev = cs_get_revision();
|
||||
|
||||
CFEManager* fem = CFEManager::getInstance();
|
||||
@@ -74,6 +76,11 @@ hw_caps_t *get_hwcaps(void)
|
||||
|
||||
strcpy(caps.chipset, "Nevis");
|
||||
|
||||
if (! uname(&u))
|
||||
strncpy(caps.boxarch, u.machine, sizeof(caps.boxarch));
|
||||
else
|
||||
fprintf(stderr, "%s: uname() failed: %m\n", __func__);
|
||||
|
||||
initialized = 1;
|
||||
return ∩︀
|
||||
}
|
||||
|
Reference in New Issue
Block a user