switch mpd to any interface
This commit is contained in:
parent
df5c5c0112
commit
fd2e80dde4
|
@ -34,7 +34,7 @@ in {
|
||||||
|
|
||||||
services.mpd = {
|
services.mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
network.listenAddress = "0.0.0.0";
|
network.listenAddress = "any";
|
||||||
musicDirectory = "/Music";
|
musicDirectory = "/Music";
|
||||||
dbFile = null;
|
dbFile = null;
|
||||||
credentials = [
|
credentials = [
|
||||||
|
|
|
@ -1,157 +1,3 @@
|
||||||
From 31acfdc558652ea480c773f095ab675218af8195 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sam Nazarko <email@samnazarko.co.uk>
|
|
||||||
Date: Tue, 2 Jun 2015 22:56:15 +0100
|
|
||||||
Subject: [PATCH 01/24] Fix UPower capability detection on Vero
|
|
||||||
|
|
||||||
Signed-off-by: Sam Nazarko <email@samnazarko.co.uk>
|
|
||||||
---
|
|
||||||
xbmc/platform/linux/powermanagement/LogindUPowerSyscall.cpp | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/xbmc/platform/linux/powermanagement/LogindUPowerSyscall.cpp b/xbmc/platform/linux/powermanagement/LogindUPowerSyscall.cpp
|
|
||||||
index bd04197a51..7cb68a19b4 100644
|
|
||||||
--- a/xbmc/platform/linux/powermanagement/LogindUPowerSyscall.cpp
|
|
||||||
+++ b/xbmc/platform/linux/powermanagement/LogindUPowerSyscall.cpp
|
|
||||||
@@ -39,8 +39,8 @@ CLogindUPowerSyscall::CLogindUPowerSyscall()
|
|
||||||
if (!m_hasUPower)
|
|
||||||
CLog::Log(LOGINFO, "LogindUPowerSyscall - UPower not found, battery information will not be available");
|
|
||||||
|
|
||||||
- m_canPowerdown = LogindCheckCapability("CanPowerOff");
|
|
||||||
- m_canReboot = LogindCheckCapability("CanReboot");
|
|
||||||
+ m_canPowerdown = true;
|
|
||||||
+ m_canReboot = true;
|
|
||||||
m_canHibernate = LogindCheckCapability("CanHibernate");
|
|
||||||
m_canSuspend = LogindCheckCapability("CanSuspend");
|
|
||||||
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
||||||
|
|
||||||
From 4ae22b3482359e9ce9a015b61001eb1e9385c19c Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sam Nazarko <email@samnazarko.co.uk>
|
|
||||||
Date: Thu, 21 Dec 2017 11:38:02 +0000
|
|
||||||
Subject: [PATCH 02/24] Add OSMC Helper routines to improve Kodi integration
|
|
||||||
with OSMC
|
|
||||||
|
|
||||||
Signed-off-by: Sam Nazarko <email@samnazarko.co.uk>
|
|
||||||
---
|
|
||||||
xbmc/CMakeLists.txt | 2 ++
|
|
||||||
xbmc/OSMCHelper.cpp | 36 ++++++++++++++++++++++++++++++++++++
|
|
||||||
xbmc/OSMCHelper.h | 38 ++++++++++++++++++++++++++++++++++++++
|
|
||||||
3 files changed, 76 insertions(+)
|
|
||||||
create mode 100644 xbmc/OSMCHelper.cpp
|
|
||||||
create mode 100644 xbmc/OSMCHelper.h
|
|
||||||
|
|
||||||
diff --git a/xbmc/CMakeLists.txt b/xbmc/CMakeLists.txt
|
|
||||||
index b7c838b3da..3ddcc4da76 100644
|
|
||||||
--- a/xbmc/CMakeLists.txt
|
|
||||||
+++ b/xbmc/CMakeLists.txt
|
|
||||||
@@ -16,6 +16,7 @@ set(SOURCES AutoSwitch.cpp
|
|
||||||
LangInfo.cpp
|
|
||||||
MediaSource.cpp
|
|
||||||
NfoFile.cpp
|
|
||||||
+ OSMCHelper.cpp
|
|
||||||
PasswordManager.cpp
|
|
||||||
PlayListPlayer.cpp
|
|
||||||
PartyModeManager.cpp
|
|
||||||
@@ -58,6 +59,7 @@ set(HEADERS AutoSwitch.h
|
|
||||||
LockType.h
|
|
||||||
MediaSource.h
|
|
||||||
NfoFile.h
|
|
||||||
+ OSMCHelper.h
|
|
||||||
PartyModeManager.h
|
|
||||||
PasswordManager.h
|
|
||||||
PlayListPlayer.h
|
|
||||||
diff --git a/xbmc/OSMCHelper.cpp b/xbmc/OSMCHelper.cpp
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000000..2b605881b1
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/xbmc/OSMCHelper.cpp
|
|
||||||
@@ -0,0 +1,36 @@
|
|
||||||
+/*
|
|
||||||
+ * Copyright (C) 2005-2013 Team XBMC
|
|
||||||
+ * http://xbmc.org
|
|
||||||
+ *
|
|
||||||
+ * This Program is free software; you can redistribute it and/or modify
|
|
||||||
+ * it under the terms of the GNU General Public License as published by
|
|
||||||
+ * the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
+ * any later version.
|
|
||||||
+ *
|
|
||||||
+ * This Program is distributed in the hope that it will be useful,
|
|
||||||
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ * GNU General Public License for more details.
|
|
||||||
+ *
|
|
||||||
+ * You should have received a copy of the GNU General Public License
|
|
||||||
+ * along with XBMC; see the file COPYING. If not, see
|
|
||||||
+ * <http://www.gnu.org/licenses/>.
|
|
||||||
+ *
|
|
||||||
+ */
|
|
||||||
+// OSMCHelper.cpp: implementation of OSMC helper routines
|
|
||||||
+//
|
|
||||||
+//////////////////////////////////////////////////////////////////////
|
|
||||||
+
|
|
||||||
+extern "C" {
|
|
||||||
+#include "OSMCHelper.h"
|
|
||||||
+ #if defined(__arm__)
|
|
||||||
+ /* Ensure that uname returns arm, or machine model will reflect kernel bitness only */
|
|
||||||
+ int uname(struct utsname *buf)
|
|
||||||
+ {
|
|
||||||
+ int r;
|
|
||||||
+ r = syscall(SYS_uname, buf);
|
|
||||||
+ strcpy(buf->machine, "armv7");
|
|
||||||
+ return r;
|
|
||||||
+ }
|
|
||||||
+ #endif // __arm__
|
|
||||||
+}
|
|
||||||
diff --git a/xbmc/OSMCHelper.h b/xbmc/OSMCHelper.h
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000000..709d21afbe
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/xbmc/OSMCHelper.h
|
|
||||||
@@ -0,0 +1,38 @@
|
|
||||||
+/*
|
|
||||||
+ * Copyright (C) 2005-2013 Team XBMC
|
|
||||||
+ * http://xbmc.org
|
|
||||||
+ *
|
|
||||||
+ * This Program is free software; you can redistribute it and/or modify
|
|
||||||
+ * it under the terms of the GNU General Public License as published by
|
|
||||||
+ * the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
+ * any later version.
|
|
||||||
+ *
|
|
||||||
+ * This Program is distributed in the hope that it will be useful,
|
|
||||||
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ * GNU General Public License for more details.
|
|
||||||
+ *
|
|
||||||
+ * You should have received a copy of the GNU General Public License
|
|
||||||
+ * along with XBMC; see the file COPYING. If not, see
|
|
||||||
+ * <http://www.gnu.org/licenses/>.
|
|
||||||
+ *
|
|
||||||
+ */
|
|
||||||
+// OSMCHelper.h: routines to improve behaviour of Kodi on OSMC
|
|
||||||
+//
|
|
||||||
+//////////////////////////////////////////////////////////////////////
|
|
||||||
+
|
|
||||||
+#pragma once
|
|
||||||
+
|
|
||||||
+#include <sys/syscall.h>
|
|
||||||
+#include <sys/types.h>
|
|
||||||
+#include <sys/utsname.h>
|
|
||||||
+#include <unistd.h>
|
|
||||||
+#include <stdio.h>
|
|
||||||
+#include <string.h>
|
|
||||||
+
|
|
||||||
+extern "C" {
|
|
||||||
+ #if defined(__arm__)
|
|
||||||
+ /* Fix up uname for 64-bit kernels with 32-bit userland */
|
|
||||||
+ int uname(struct utsname *buf);
|
|
||||||
+ #endif // __arm__
|
|
||||||
+}
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
||||||
|
|
||||||
From 74b81e0fe134756e283f93b2acd20fada7bdc545 Mon Sep 17 00:00:00 2001
|
From 74b81e0fe134756e283f93b2acd20fada7bdc545 Mon Sep 17 00:00:00 2001
|
||||||
From: Sam Nazarko <email@samnazarko.co.uk>
|
From: Sam Nazarko <email@samnazarko.co.uk>
|
||||||
Date: Sat, 6 Mar 2021 18:29:22 +0000
|
Date: Sat, 6 Mar 2021 18:29:22 +0000
|
||||||
|
|
Loading…
Reference in a new issue