X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot%2F3020-swapon;h=e7aed6c0551ee861335509e4f3d0fd70abf4bfc5;hb=35765b595a898d5b3bfe40fe3f9ee49079f60136;hp=82e998a87db275aeb090d0e3e8526e0818f16d13;hpb=e5efea97c9573d24a5cd4aa051a5f39696913bcf;p=live-boot-grml.git diff --git a/scripts/boot/3020-swapon b/scripts/boot/3020-swapon index 82e998a..e7aed6c 100755 --- a/scripts/boot/3020-swapon +++ b/scripts/boot/3020-swapon @@ -18,14 +18,18 @@ Swap () esac done - if [ "${LIVE_SWAP}" != "true" ] - then - return 0 - fi + case "${LIVE_SWAP}" in + true) + ;; + + *) + return 0 + ;; + esac LIVE_SWAP_DEVICES="${LIVE_SWAP_DEVICES:-/dev/sd* /dev/vd*}" - if [ -e /run ] + if [ -e /root/etc/fstab.d ] then # wheezy _FSTAB="/root/etc/fstab.d/swap"