X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot%2F3020-swapon;h=7541c26d243d16a13fbcce431ed21f97196e3ae9;hb=d0ed1be8f69b8a427aa983017d5a8a2f3255ea73;hp=82e998a87db275aeb090d0e3e8526e0818f16d13;hpb=d0fe6311af9fbeaa1f6dbc185fa97e1ce4f5347d;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*}"