summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/13swap
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:46:37 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:31:05 +0100
commit0a1b827c113b85f48bcd58e64ccd94d094b9bd8a (patch)
treed83a31c0fdd90c55379666f5962df9c1ea6e43d4 /scripts/live-bottom/13swap
parentccea277caf476cdfef4c0f953df5a97062d8be42 (diff)
downloadlive-boot-0a1b827c113b85f48bcd58e64ccd94d094b9bd8a.tar.gz
live-boot-0a1b827c113b85f48bcd58e64ccd94d094b9bd8a.zip
Adding live-initramfs 1.87.5-1.
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