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:
Stephan Raue 2011-06-21 17:27:46 +02:00
parent dcf182aa67
commit 036b6ba4c5

View File

@ -25,7 +25,6 @@
progress "make variable directory structure"
mkdir -p /var/cache \
/var/log \
/var/lock \
/var/media \
/var/run \
@ -38,6 +37,13 @@ progress "make variable directory structure"
touch /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
chmod 1777 /var/log/wtmp