From e59392ef15075117fd4448aa08ada1a14dd54423 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 7 May 2015 13:31:16 +0200 Subject: Unsure that existing swaps are unused. --- include/partition.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 -- cgit v1.2.3