mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 16:07:51 +00:00
busybox: create log dir and store logs on /storage if boot in debug mode
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
dcf182aa67
commit
036b6ba4c5
@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
progress "make variable directory structure"
|
progress "make variable directory structure"
|
||||||
mkdir -p /var/cache \
|
mkdir -p /var/cache \
|
||||||
/var/log \
|
|
||||||
/var/lock \
|
/var/lock \
|
||||||
/var/media \
|
/var/media \
|
||||||
/var/run \
|
/var/run \
|
||||||
@ -38,6 +37,13 @@ progress "make variable directory structure"
|
|||||||
touch /var/run/utmp
|
touch /var/run/utmp
|
||||||
chmod 1777 /var/run/utmp
|
chmod 1777 /var/run/utmp
|
||||||
|
|
||||||
|
if test "$DEBUG" = "yes"; then
|
||||||
|
mkdir -p $HOME/log
|
||||||
|
ln -sf $HOME/log /var/log
|
||||||
|
else
|
||||||
|
mkdir -p /var/log
|
||||||
|
fi
|
||||||
|
|
||||||
touch /var/log/wtmp
|
touch /var/log/wtmp
|
||||||
chmod 1777 /var/log/wtmp
|
chmod 1777 /var/log/wtmp
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user