diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-05-07 13:31:16 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 04:28:16 +0200 |
commit | e59392ef15075117fd4448aa08ada1a14dd54423 (patch) | |
tree | cc7dc7b0f7482c4fc5f85ae012a8a973edf5f933 /include | |
parent | dcb691439b832faa7c3a252e7810116bc114c20e (diff) |
Unsure that existing swaps are unused.
Diffstat (limited to 'include')
-rwxr-xr-x | include/partition.sh | 1 |
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 |