mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
systemd: rework debugconfig service
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
2d27d172b1
commit
755c10994e
@ -108,7 +108,6 @@ post_makeinstall_target() {
|
|||||||
|
|
||||||
# copy openelec helper scripts
|
# copy openelec helper scripts
|
||||||
mkdir -p $INSTALL/lib/systemd/
|
mkdir -p $INSTALL/lib/systemd/
|
||||||
cp $PKG_DIR/scripts/openelec-debugconfig $INSTALL/lib/systemd/
|
|
||||||
cp $PKG_DIR/scripts/openelec-userconfig $INSTALL/lib/systemd/
|
cp $PKG_DIR/scripts/openelec-userconfig $INSTALL/lib/systemd/
|
||||||
|
|
||||||
# provide 'halt', 'shutdown', 'reboot' & co.
|
# provide 'halt', 'shutdown', 'reboot' & co.
|
||||||
|
@ -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
|
|
@ -1,13 +1,13 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Setup debug config
|
Description=Setup debug config
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
After=local-fs.target
|
After=local-fs.target systemd-tmpfiles-setup.service
|
||||||
|
|
||||||
ConditionKernelCommandLine=debugging
|
ConditionKernelCommandLine=debugging
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/lib/systemd/openelec-debugconfig
|
ExecStart=/bin/sh -c 'cp /usr/share/debugconf/*.conf /run/openelec/debug'
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=sysinit.target
|
WantedBy=sysinit.target
|
||||||
|
@ -18,4 +18,5 @@
|
|||||||
# http://www.gnu.org/copyleft/gpl.html
|
# 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 - -
|
Loading…
x
Reference in New Issue
Block a user