aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/halt
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-09-25 20:05:56 +0000
committerBill Nottingham <notting@redhat.com>2007-09-25 20:05:56 +0000
commitc2441712081015c57aabeca637eb230055a67ba3 (patch)
treeba24d2b6781e6f2f50c2abdc9e94b37b8b7293d8 /rc.d/init.d/halt
parent884e68e6d5aea74a0878f4f04bd595be193b83ce (diff)
downloadinitscripts-c2441712081015c57aabeca637eb230055a67ba3.tar
initscripts-c2441712081015c57aabeca637eb230055a67ba3.tar.gz
initscripts-c2441712081015c57aabeca637eb230055a67ba3.tar.bz2
initscripts-c2441712081015c57aabeca637eb230055a67ba3.tar.xz
initscripts-c2441712081015c57aabeca637eb230055a67ba3.zip
more fixes (#220087)
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-xrc.d/init.d/halt2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index a6d719ef..56a59012 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -138,7 +138,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 }')