summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/13swap
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/live-bottom/13swap')
-rwxr-xr-xscripts/live-bottom/13swap10
1 files changed, 5 insertions, 5 deletions
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