From cf90aeee41d759a5e849edc7a39621e4ff7c031e Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 11 Aug 2013 00:25:22 +0200 Subject: [PATCH] systemd: add debug config script and service, add avahi debug options Signed-off-by: Stephan Raue --- packages/sysutils/systemd/package.mk | 2 ++ .../systemd/scripts/openelec-debugconfig | 26 +++++++++++++++++++ .../systemd/system.d/debugconfig.service | 13 ++++++++++ 3 files changed, 41 insertions(+) create mode 100755 packages/sysutils/systemd/scripts/openelec-debugconfig create mode 100644 packages/sysutils/systemd/system.d/debugconfig.service diff --git a/packages/sysutils/systemd/package.mk b/packages/sysutils/systemd/package.mk index 39a7e6ad9b..01af3d1226 100644 --- a/packages/sysutils/systemd/package.mk +++ b/packages/sysutils/systemd/package.mk @@ -105,6 +105,7 @@ post_makeinstall_target() { # copy openelec helper scripts mkdir -p $INSTALL/lib/systemd/ + cp $PKG_DIR/scripts/openelec-debugconfig $INSTALL/lib/systemd/ cp $PKG_DIR/scripts/openelec-userconfig $INSTALL/lib/systemd/ # provide 'halt', 'shutdown', 'reboot' & co. @@ -159,5 +160,6 @@ post_install() { add_group utmp 22 enable_service machine-id.service + enable_service debugconfig.service enable_service userconfig.service } diff --git a/packages/sysutils/systemd/scripts/openelec-debugconfig b/packages/sysutils/systemd/scripts/openelec-debugconfig new file mode 100755 index 0000000000..9f250403a6 --- /dev/null +++ b/packages/sysutils/systemd/scripts/openelec-debugconfig @@ -0,0 +1,26 @@ +#!/bin/sh +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +mkdir -p /run/openelec + +cat > /run/openelec/debug.conf <