X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot%2F3020-swapon;h=7541c26d243d16a13fbcce431ed21f97196e3ae9;hb=refs%2Ftags%2Fupstream%2F3.0_b10;hp=82e998a87db275aeb090d0e3e8526e0818f16d13;hpb=e5efea97c9573d24a5cd4aa051a5f39696913bcf;p=live-boot-grml.git diff --git a/scripts/boot/3020-swapon b/scripts/boot/3020-swapon index 82e998a..7541c26 100755 --- a/scripts/boot/3020-swapon +++ b/scripts/boot/3020-swapon @@ -18,10 +18,14 @@ 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*}"