hal: Branch 'master'
Danny Kukawka
dkukawka at kemper.freedesktop.org
Fri Jan 12 11:57:45 PST 2007
tools/linux/hal-luks-remove-linux.in | 54 -----------------------------------
1 files changed, 54 deletions(-)
New commits:
diff-tree 4faf1889374ed46af0081adcf20b11291e76efef (from 8d0247f630b28633914f91b800d72863a71cab82)
Author: Danny Kukawka <danny.kukawka at web.de>
Date: Fri Jan 12 20:53:58 2007 +0100
removed not needed '.in' version of a luks script
Removed a old, but no longer needed '.in' script for LUKS
(hal-luks-remove-linux.in) in the linux tree.
diff --git a/tools/linux/hal-luks-remove-linux.in b/tools/linux/hal-luks-remove-linux.in
deleted file mode 100755
index e799889..0000000
--- a/tools/linux/hal-luks-remove-linux.in
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/bash
-
-# FILE: hal-luks-remove -- HAL method wrapper for cryptsetup remove
-# AUTHOR: W. Michael Petullo <mike at flyn.org>
-# DATE: 25 July 2005
-#
-# Copyright (C) 2005 W. Michael Petullo <mike at flyn.org>
-# All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-CRYPTSETUP=/sbin/cryptsetup
-
-HAL_FIND_BY_PROPERTY=@BINDIR@/hal-find-by-property
-HAL_GET_PROPERTY=@BINDIR@/hal-get-property
-
-# make sure that the cleartext volume is unmounted
-CLEARTEXT_VOLUME_UDI=`$HAL_FIND_BY_PROPERTY --key volume.crypto_luks.clear.backing_volume --string $HAL_PROP_INFO_UDI`
-RET=$?
-if [ x$RET = x0 ]; then
- MOUNT_POINT=`$HAL_GET_PROPERTY --udi $CLEARTEXT_VOLUME_UDI --key volume.mount_point`
- if [ ! x${#MOUNT_POINT} = x0 ]; then
- /bin/umount -l $MOUNT_POINT
- fi
-fi
-
-if [ ! -f $CRYPTSETUP ]; then
- echo Error removing $HAL_PROP_BLOCK_DEVICE - $CRYPTSETUP not found >&2
- exit 1
-fi
-
-if [ -z $HAL_PROP_VOLUME_UUID ]; then
- echo Error determining UUID of $HAL_PROP_BLOCK_DEVICE >&2
- exit 1
-fi
-
-if ! $CRYPTSETUP remove luks_crypto_$HAL_PROP_VOLUME_UUID 2> /dev/null; then
- echo Error removing luks_crypto_$HAL_PROP_VOLUME_UUID >&2
- exit 1
-fi
-
-exit 0
More information about the hal-commit
mailing list