mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
xbmc: add tmpfiles.d support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
579684502a
commit
a4f1c5d120
@ -25,20 +25,8 @@
|
||||
progress "setup XBMC"
|
||||
|
||||
#
|
||||
# add some default settings
|
||||
# setup XBMC sources
|
||||
#
|
||||
mkdir -p $HOME/.xbmc/userdata
|
||||
|
||||
#
|
||||
# setup directories for XBMC sources
|
||||
#
|
||||
|
||||
[ ! -d "$HOME/music" ] && mkdir -p $HOME/music
|
||||
[ ! -d "$HOME/pictures" ] && mkdir -p $HOME/pictures
|
||||
[ ! -d "$HOME/tvshows" ] && mkdir -p $HOME/tvshows
|
||||
[ ! -d "$HOME/videos" ] && mkdir -p $HOME/videos
|
||||
|
||||
mkdir -p $HOME/.xbmc/userdata
|
||||
|
||||
if [ ! -f $HOME/.xbmc/userdata/sources.xml ]; then
|
||||
if [ -f /usr/share/xbmc/config/sources.xml ]; then
|
||||
@ -81,10 +69,6 @@ EOF
|
||||
# common setup guisettings
|
||||
#
|
||||
|
||||
mkdir -p $HOME/.xbmc/userdata
|
||||
|
||||
[ ! -d "$HOME/screenshots" ] && mkdir -p $HOME/screenshots
|
||||
|
||||
if [ ! -f $HOME/.xbmc/userdata/guisettings.xml ] ; then
|
||||
echo "<settings>" > $HOME/.xbmc/userdata/guisettings.xml
|
||||
|
||||
|
26
packages/mediacenter/xbmc/tmpfiles.d/92_xbmc_user_dirs.conf
Normal file
26
packages/mediacenter/xbmc/tmpfiles.d/92_xbmc_user_dirs.conf
Normal file
@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
# 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
|
||||
################################################################################
|
||||
|
||||
d /storage/.xbmc/userdata 0755 root root - -
|
||||
d /storage/music 0755 root root - -
|
||||
d /storage/pictures 0755 root root - -
|
||||
d /storage/tvshows 0755 root root - -
|
||||
d /storage/videos 0755 root root - -
|
||||
d /storage/screenshots 0755 root root - -
|
Loading…
x
Reference in New Issue
Block a user