Merge pull request #1069 from justincormack/swap-fix

Always mount swap not just when created
This commit is contained in:
Justin Cormack 2017-01-20 15:42:56 +00:00 committed by GitHub
commit 2c604f1ef9

View File

@ -96,8 +96,8 @@ do_swapfile()
dd if=/dev/zero of=$SWAP bs=1k count=1048576
chmod 600 $SWAP
mkswap $SWAP
swapon $SWAP
fi
[ -f "$SWAP" ] && swapon $SWAP
}
start()