systemd: rework debugconfig service

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-18 14:10:28 +02:00
parent 2d27d172b1
commit 755c10994e
4 changed files with 4 additions and 33 deletions

View File

@ -108,7 +108,6 @@ 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.

View File

@ -1,29 +0,0 @@
#!/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 <<EOF
AVAHI_DEBUG="--debug"
BLUEZ_DEBUG="--debug"
OBEX_DEBUG="--debug"
XORG_DEBUG="-logverbose 6 -verbose 6"
EOF

View File

@ -1,13 +1,13 @@
[Unit]
Description=Setup debug config
DefaultDependencies=no
After=local-fs.target
After=local-fs.target systemd-tmpfiles-setup.service
ConditionKernelCommandLine=debugging
[Service]
Type=oneshot
ExecStart=/lib/systemd/openelec-debugconfig
ExecStart=/bin/sh -c 'cp /usr/share/debugconf/*.conf /run/openelec/debug'
[Install]
WantedBy=sysinit.target

View File

@ -18,4 +18,5 @@
# http://www.gnu.org/copyleft/gpl.html
################################################################################
d /run/openelec 0755 root root - -
d /run/openelec 0755 root root - -
d /run/openelec/debug 0755 root root - -