aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-05-07 13:31:16 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 04:28:16 +0200
commite59392ef15075117fd4448aa08ada1a14dd54423 (patch)
treecc7dc7b0f7482c4fc5f85ae012a8a973edf5f933 /include
parentdcb691439b832faa7c3a252e7810116bc114c20e (diff)
Unsure that existing swaps are unused.
Diffstat (limited to 'include')
-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