packages/sysutils/busybox/scripts/createlog: create .zip instead of .tar.bz2

Adds compatibilty with Windows users so they wont need extra tools. Adds a small increase in the size of the compressed logs
This commit is contained in:
Bas Spaans 2012-03-17 17:25:17 +01:00
parent 3872fd7415
commit aa99ff9023

View File

@ -85,7 +85,7 @@ mkdir -p $BASEDIR/$LOGDIR
# pack logfiles
mkdir -p /storage/logfiles
tar cvjf /storage/logfiles/log-$DATE.tar.bz2 $LOGDIR -C $BASEDIR
# tar cvjf /storage/logfiles/log-$DATE.tar.bz2 $LOGDIR -C $BASEDIR
zip -jq /storage/logfiles/log-$DATE.zip $BASEDIR/$LOGDIR/*
# remove logdir
rm -rf $BASEDIR/$LOGDIR
rm -rf $BASEDIR/$LOGDIR