mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
busybox: add tmpfiles.d support, cleanup old initscript todo the same
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
469bce1c2a
commit
a3e6ecd46e
@ -1,72 +0,0 @@
|
||||
################################################################################
|
||||
# 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
|
||||
################################################################################
|
||||
|
||||
#
|
||||
# make variable directory structure
|
||||
#
|
||||
# runlevels: openelec, installer, textmode
|
||||
|
||||
progress "make variable directory structure"
|
||||
mkdir -p /var/cache \
|
||||
/var/lib \
|
||||
/var/lock \
|
||||
/var/media \
|
||||
/var/run \
|
||||
/var/tmp \
|
||||
/var/run/sepermit \
|
||||
/var/run/lirc
|
||||
|
||||
chmod 1777 /var/run /var/tmp
|
||||
|
||||
touch /var/run/utmp
|
||||
chmod 1777 /var/run/utmp
|
||||
|
||||
progress "make logging directory structure"
|
||||
if [ ! "$RUNLEVEL" = "installer" -a "$DEBUG" = "yes" ]; then
|
||||
mkdir -p $HOME/log
|
||||
ln -sf $HOME/log /var/log
|
||||
else
|
||||
mkdir -p /var/log
|
||||
fi
|
||||
|
||||
touch /var/log/wtmp
|
||||
chmod 1777 /var/log/wtmp
|
||||
|
||||
if [ ! "$RUNLEVEL" = "installer" ]; then
|
||||
progress "make runtime directory structure"
|
||||
ln -sf /storage/.config/modprobe.d /run/modprobe.d
|
||||
|
||||
progress "make variable library directory structure"
|
||||
# others:
|
||||
mkdir -p /var/lib/polkit-1
|
||||
chmod 700 /var/lib/polkit-1
|
||||
mkdir -p /var/lib/polkit-1/localauthority/10-vendor.d
|
||||
mkdir -p /var/lib/polkit-1/localauthority/20-org.d
|
||||
mkdir -p /var/lib/polkit-1/localauthority/30-site.d
|
||||
mkdir -p /var/lib/polkit-1/localauthority/50-local.d
|
||||
mkdir -p /var/lib/polkit-1/localauthority/90-mandatory.d
|
||||
|
||||
mkdir -p /var/lib/udisks
|
||||
mkdir -p /var/lib/upower
|
||||
|
||||
progress "make caching directory structure"
|
||||
mkdir -p $HOME/.cache/bluetooth
|
||||
ln -sf $HOME/.cache/bluetooth /var/lib/bluetooth
|
||||
fi
|
30
packages/sysutils/busybox/tmpfiles.d/02_busybox.conf
Normal file
30
packages/sysutils/busybox/tmpfiles.d/02_busybox.conf
Normal file
@ -0,0 +1,30 @@
|
||||
################################################################################
|
||||
# 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 /var/cache 0755 root root 10d -
|
||||
d /var/lib 0755 root root 10d -
|
||||
d /var/lock 0755 root root 10d -
|
||||
d /var/log 0755 root root 10d -
|
||||
d /var/media 0755 root root 10d -
|
||||
d /var/run 1777 root root 10d -
|
||||
d /var/tmp 1777 root root 10d -
|
||||
|
||||
f /var/run/utmp 1777 root root 10d -
|
||||
f /var/log/wtmp 1777 root root 10d -
|
Loading…
x
Reference in New Issue
Block a user