busybox: mount-filesystem: ensure that /storage/log is a directory

This commit is contained in:
Stefan Saraev 2013-08-19 22:17:25 +03:00
parent 611699b755
commit 448068621c

View File

@ -34,6 +34,7 @@ progress "mounting needed filesystems"
mount -n -t debugfs debugfs /sys/kernel/debug
if [ ! "$RUNLEVEL" = "installer" -a "$DEBUG" = "yes" ]; then
[ ! -d $HOME/log ] && rm -rf $HOME/log &>/dev/null
mkdir -p $HOME/log
ln -sf $HOME/log /var/log
else