summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/13swap
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/live-bottom/13swap')
-rwxr-xr-xscripts/live-bottom/13swap2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/live-bottom/13swap b/scripts/live-bottom/13swap
index ecbdce1..1975bd5 100755
--- a/scripts/live-bottom/13swap
+++ b/scripts/live-bottom/13swap
@@ -20,7 +20,7 @@ esac
# live-initramfs header
-if [ -n "${NOSWAP}" ] || [ -n "${NOFSTAB}" ]
+if [ -z "${SWAPON}" ] || [ -n "${NOFSTAB}" ]
then
exit 0
fi