aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinclude/partition.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/partition.sh b/include/partition.sh
index 4eedcc3..10c17a0 100755
--- a/include/partition.sh
+++ b/include/partition.sh
@@ -32,6 +32,7 @@ raidLevel=
#raidLevel=raid1 # raid level FIXME
#raidNumActiveDevices=2 # number of active devices in the array FIXME
+sed -nr "\#^/# s/\s.*//p" /proc/swaps | while read s; do swapoff "$s"; done
n=0
for d in $device; do