util-linux: show progress if creating swapfile on startup

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-04-26 00:47:24 +02:00
parent 1871b22418
commit 654f7f915e

View File

@ -35,6 +35,7 @@ fi
if [ -z "$SWAP" -a ! -f "$SWAPFILE" ]; then
progress "creating swapfile"
echo "creating Swapfile ..."
mkdir -p `dirname $SWAPFILE`
dd if=/dev/zero of=$SWAPFILE bs=1024 count=$SWAPFILESIZE 2>&1 > /dev/null
mkswap $SWAPFILE 2>&1 > /dev/null