X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F13swap;h=8b47a0099d65b27b7742f4b3b00b5028430d9067;hb=9193f3f2f1380c397f97e05528c0de0f93eae859;hp=4f6be9d7e8f46b0c8931576deb8460b38ae9df17;hpb=cdb98bbbdc41b29c6b94dc5aed36393daec84cf8;p=live-boot-grml.git diff --git a/scripts/live-bottom/13swap b/scripts/live-bottom/13swap index 4f6be9d..8b47a00 100755 --- a/scripts/live-bottom/13swap +++ b/scripts/live-bottom/13swap @@ -20,6 +20,11 @@ esac # live-initramfs header +if [ -n "${NOSWAP}" ] +then + exit 0 +fi + . /scripts/live-functions log_begin_msg "Setting up swap..." @@ -28,11 +33,6 @@ log_begin_msg "Setting up swap..." FSTAB=/root/etc/fstab -if [ -n "${NOSWAP}" ] -then - exit 0 -fi - devices="" for device in /dev/[hs]d[a-z][0-9]*; do if ! [ -b "$device" ]; then