busybox: be sure /storage/log is a directory

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-19 23:18:54 +02:00
parent 3ef6620d9f
commit 3711d4ed0c

View File

@ -8,6 +8,7 @@ ConditionKernelCommandLine=!installer
[Service]
Type=oneshot
ExecStartPre=/bin/sh -c 'if [ ! -d /storage/log ]; then rm -rf /storage/log &>/dev/null; fi'
ExecStart=/bin/sh -c 'rm -rf /var/log && mkdir -p /storage/log && ln -sf /storage/log /var/log'
RemainAfterExit=yes