diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-12-19 16:13:21 +0200 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-01-07 17:46:14 -0500 |
commit | 655de403ad25a5332b25174009107884f9b30420 (patch) | |
tree | cdb4c75af4d48c5fbd181bd8a10d1d1bb4070606 /rc.d/init.d/halt | |
parent | d50d6fae1bfc47e65001aeb36daa2ac96f44e421 (diff) | |
download | initscripts-655de403ad25a5332b25174009107884f9b30420.tar initscripts-655de403ad25a5332b25174009107884f9b30420.tar.gz initscripts-655de403ad25a5332b25174009107884f9b30420.tar.bz2 initscripts-655de403ad25a5332b25174009107884f9b30420.tar.xz initscripts-655de403ad25a5332b25174009107884f9b30420.zip |
Simplify various string match constructs.
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-x | rc.d/init.d/halt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 7144d3da..8cb437fc 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -116,7 +116,7 @@ tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; } if [ -n "$SWAPS" ]; then action $"Turning off swap: " swapoff $SWAPS for dst in $SWAPS; do - if [[ "$dst" =~ ^/dev/mapper ]] \ + if [[ "$dst" == /dev/mapper* ]] \ && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then backdev=$(/sbin/cryptsetup status "$dst" \ | awk '$1 == "device:" { print $2 }') |